1
0
Fork 0

(svn r15630) -Fix (r15027): Make sure OpenTTD loads the dummy AI script when no other AI is available instead of a non-existing file.

release/0.7
yexo 2009-03-06 15:20:18 +00:00
parent b520d73285
commit 3633fd9a06
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ AIScanner::AIScanner() :
/* Create the dummy AI */ /* Create the dummy AI */
this->engine->ResetCrashed(); this->engine->ResetCrashed();
strcpy(this->main_script, "%_dummy");
extern void AI_CreateAIInfoDummy(HSQUIRRELVM vm); extern void AI_CreateAIInfoDummy(HSQUIRRELVM vm);
AI_CreateAIInfoDummy(this->engine->GetVM()); AI_CreateAIInfoDummy(this->engine->GetVM());
} }