diff options
author | rubidium <rubidium@openttd.org> | 2014-09-07 09:30:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-07 09:30:57 +0000 |
commit | 08cbf115395ccdc8682b14279f6160fc02d3ec14 (patch) | |
tree | d92cc87281af4d99ebd90a223d970eac7a236af4 /src/script | |
parent | f41b4a8e1bc6176670cf31b06e90c14a93a378f7 (diff) | |
download | openttd-08cbf115395ccdc8682b14279f6160fc02d3ec14.tar.xz |
(svn r26785) -Fix [Squirrel]: loading a value saved as boolean caused it to be of type integer instead of boolean
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/script_instance.cpp | 2 |
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; } |