summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-06 15:20:18 +0000
committeryexo <yexo@openttd.org>2009-03-06 15:20:18 +0000
commit76c0f51cf5ca7fb9b494ffe597b0c89fee5ceb47 (patch)
tree1509b590253cc948e54d9bd7da31b86208a1b124 /src/ai
parenta53062dd808117bd5eb4833d62db7f61745340e5 (diff)
downloadopenttd-76c0f51cf5ca7fb9b494ffe597b0c89fee5ceb47.tar.xz
(svn r15630) -Fix (r15027): Make sure OpenTTD loads the dummy AI script when no other AI is available instead of a non-existing file.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_scanner.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index 860a8d7cd..f5c1231a8 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -162,6 +162,7 @@ AIScanner::AIScanner() :
/* Create the dummy AI */
this->engine->ResetCrashed();
+ strcpy(this->main_script, "%_dummy");
extern void AI_CreateAIInfoDummy(HSQUIRRELVM vm);
AI_CreateAIInfoDummy(this->engine->GetVM());
}