From 08cbf115395ccdc8682b14279f6160fc02d3ec14 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 7 Sep 2014 09:30:57 +0000 Subject: (svn r26785) -Fix [Squirrel]: loading a value saved as boolean caused it to be of type integer instead of boolean --- src/script/script_instance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2