mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
f41b4a8e1b
commit
08cbf11539
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue