summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-08-20 10:45:57 +0000
committeryexo <yexo@openttd.org>2009-08-20 10:45:57 +0000
commit0cb004e1d29da1bdc78b7bff5d567ca70562f412 (patch)
treedadee01cc90a035bf658130ee0246fd4bc5f2e9f /src
parent14b5862c229a7003fbb0dc259386dc1153048c56 (diff)
downloadopenttd-0cb004e1d29da1bdc78b7bff5d567ca70562f412.tar.xz
(svn r17231) -Fix [FS#3134]: AIs that crashed during Save() weren't killed as they should
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_instance.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp
index 6e1ffa0c1..0562cccb8 100644
--- a/src/ai/ai_instance.cpp
+++ b/src/ai/ai_instance.cpp
@@ -606,6 +606,7 @@ void AIInstance::Save()
/* The script crashed in the Save function. We can't kill
* it here, but do so in the next AI tick. */
SaveEmpty();
+ this->engine->CrashOccurred();
return;
}
AIObject::SetAllowDoCommand(backup_allow);