summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-01-02 22:44:28 +0000
committerrubidium <rubidium@openttd.org>2012-01-02 22:44:28 +0000
commitd2f776ef3ee7bd78eb1daec310f3e253b8323ea0 (patch)
treea2bd78f0098c6b405fa3a0bd0e700546a06a47e3 /src/ai
parent8371ecc9229c91066d0d933020598b07ad3e4400 (diff)
downloadopenttd-d2f776ef3ee7bd78eb1daec310f3e253b8323ea0.tar.xz
(svn r23720) -Fix/Feature [FS#4935]: show the script debug window also when the game script crashes
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 1843906b6..f60233077 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -1321,4 +1321,9 @@ void ShowAIDebugWindowIfAIError()
break;
}
}
+
+ GameInstance *g = Game::GetGameInstance();
+ if (g != NULL && g->IsDead()) {
+ ShowAIDebugWindow(OWNER_DEITY);
+ }
}