(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
1 changed files with 1 additions and 1 deletions

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;
}