(svn r23720) -Fix/Feature [FS#4935]: show the script debug window also when the game script crashes

This commit is contained in:
rubidium
2012-01-02 22:44:28 +00:00
parent 8371ecc922
commit d2f776ef3e
4 changed files with 26 additions and 1 deletions

View File

@@ -1321,4 +1321,9 @@ void ShowAIDebugWindowIfAIError()
break;
}
}
GameInstance *g = Game::GetGameInstance();
if (g != NULL && g->IsDead()) {
ShowAIDebugWindow(OWNER_DEITY);
}
}