Fix: [Script] Only show debug script window at the end of savegame loading (#12135)

(cherry picked from commit 2d7ad9f717)
This commit is contained in:
Loïc Guilloux
2024-02-20 17:08:26 +01:00
committed by Jonathan G Rennison
parent ff0d212705
commit 5098c77c38
2 changed files with 6 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ void GameInstance::Died()
{
ScriptInstance::Died();
/* Don't show errors while loading savegame. They will be shown at end of loading anyway. */
if (_switch_mode != SM_NONE) return;
ShowScriptDebugWindow(OWNER_DEITY);
const GameInfo *info = Game::GetInfo();