diff options
author | yexo <yexo@openttd.org> | 2009-03-06 15:20:18 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-03-06 15:20:18 +0000 |
commit | 3633fd9a06495eaedfb65c7fa5ce4940d567267c (patch) | |
tree | 1509b590253cc948e54d9bd7da31b86208a1b124 /src | |
parent | b520d7328586a7ca48a8ada8c95493a7da60d5c6 (diff) | |
download | openttd-3633fd9a06495eaedfb65c7fa5ce4940d567267c.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')
-rw-r--r-- | src/ai/ai_scanner.cpp | 1 |
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()); } |