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

(svn r26785) -Fix [Squirrel]: loading a value saved as boolean caused it to be of type integer instead of boolean

This commit is contained in:
rubidium
2014-09-07 09:30:57 +00:00
parent f41b4a8e1b
commit 08cbf11539

View File

@@ -591,7 +591,7 @@ bool ScriptInstance::IsPaused()
case SQSL_BOOL: {
SlObject(NULL, _script_byte);
if (vm != NULL) sq_pushinteger(vm, (SQBool)(_script_sl_byte != 0));
if (vm != NULL) sq_pushbool(vm, (SQBool)(_script_sl_byte != 0));
return true;
}