1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 19:09:09 +00:00

(svn r15742) -Fix (r15736): AIs with an invalid info.nut weren't ignored anymore.

This commit is contained in:
yexo
2009-03-16 14:40:32 +00:00
parent cabf57b221
commit b078f8095a

View File

@@ -35,7 +35,8 @@ AILibrary::~AILibrary()
/* static */ SQInteger AIFileInfo::Constructor(HSQUIRRELVM vm, AIFileInfo *info)
{
ScriptFileInfo::Constructor(vm, info);
SQInteger res = ScriptFileInfo::Constructor(vm, info);
if (res != 0) return res;
info->base = ((AIScanner *)Squirrel::GetGlobalPointer(vm));
return 0;