Fix dangling else in sqapi.cpp
authorTobias Markus <tobbi@mozilla-uk.org>
Mon, 19 Aug 2013 01:05:06 +0000 (03:05 +0200)
committerTobias Markus <tobbi@mozilla-uk.org>
Mon, 19 Aug 2013 10:16:40 +0000 (12:16 +0200)
external/squirrel/squirrel/sqapi.cpp

index 342e0a3..d913fb4 100644 (file)
@@ -808,10 +808,14 @@ SQRESULT sq_rawdeleteslot(HSQUIRRELVM v,SQInteger idx,SQBool pushval)
        if(_table(*self)->Get(key,t)) {
                _table(*self)->Remove(key);
        }
-       if(pushval != 0)
-               if(pushval)     v->GetUp(-1) = t;
-       else
+       if(pushval != 0) {
+               if(pushval) {
+            v->GetUp(-1) = t;
+        }
+    }
+       else {
                v->Pop(1);
+    }
        return SQ_OK;
 }