summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-07 09:30:57 +0000
committerrubidium <rubidium@openttd.org>2014-09-07 09:30:57 +0000
commit08cbf115395ccdc8682b14279f6160fc02d3ec14 (patch)
treed92cc87281af4d99ebd90a223d970eac7a236af4
parentf41b4a8e1bc6176670cf31b06e90c14a93a378f7 (diff)
downloadopenttd-08cbf115395ccdc8682b14279f6160fc02d3ec14.tar.xz
(svn r26785) -Fix [Squirrel]: loading a value saved as boolean caused it to be of type integer instead of boolean
-rw-r--r--src/script/script_instance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script_instance.cpp b/src/script/script_instance.cpp
index f5039ffbc..5df06ad89 100644
--- a/src/script/script_instance.cpp
+++ b/src/script/script_instance.cpp
@@ -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;
}