From: Tobias Markus Date: Mon, 19 Aug 2013 01:05:06 +0000 (+0200) Subject: Fix dangling else in sqapi.cpp X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b7a7c006433d2f344a02516b47713b413132bfbc;p=supertux.git Fix dangling else in sqapi.cpp --- diff --git a/external/squirrel/squirrel/sqapi.cpp b/external/squirrel/squirrel/sqapi.cpp index 342e0a3a4..d913fb41f 100644 --- a/external/squirrel/squirrel/sqapi.cpp +++ b/external/squirrel/squirrel/sqapi.cpp @@ -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; }