Skip to content

Commit

Permalink
Fix startup freeze in e1.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
LiZhenhuan1019 committed Mar 14, 2021
1 parent 1130bd0 commit 369e198
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ public override void OnGameEnd(TaleWorlds.Core.Game game)

public override void OnLoadFinished()
{
var active = Game.Current.GameStateManager.ActiveStateDisabledByUser;

base.OnLoadFinished();

// revert the effects in TaleWorlds.CampaignSystem.CharacterCreationContent.CharacterCreationState.OnInitialize
Game.Current.GameStateManager.ActiveStateDisabledByUser = active;

if (CampaignSiegeTestStatic.IsSiegeTestBuild)
CampaignSiegeTestStatic.DisableSiegeTest();
Game.Current.GameStateManager.OnSavedGameLoadFinished();
Expand Down

0 comments on commit 369e198

Please sign in to comment.