Fix syntax error reported by cppcheck
authorTobias Markus <tobbi.bugs@googlemail.com>
Sun, 1 Mar 2015 20:34:46 +0000 (21:34 +0100)
committerTobias Markus <tobbi.bugs@googlemail.com>
Sun, 1 Mar 2015 20:34:46 +0000 (21:34 +0100)
src/scripting/squirrel_util.cpp

index 46cb6c7..ffbbf2c 100644 (file)
@@ -37,7 +37,7 @@ std::string squirrel2string(HSQUIRRELVM v, SQInteger i)
       break;
     case OT_BOOL: {
       SQBool p;
-      if SQ_SUCCEEDED(sq_getbool(v, i, &p)) {
+      if (SQ_SUCCEEDED(sq_getbool(v, i, &p))) {
         if (p)
           os << "true";
         else