projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
878e800
)
Fix dangling else in sqapi.cpp
author
Tobias Markus
<tobbi@mozilla-uk.org>
Mon, 19 Aug 2013 01:05:06 +0000
(
03:05
+0200)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Mon, 19 Aug 2013 10:16:40 +0000
(12:16 +0200)
external/squirrel/squirrel/sqapi.cpp
patch
|
blob
|
history
diff --git
a/external/squirrel/squirrel/sqapi.cpp
b/external/squirrel/squirrel/sqapi.cpp
index
342e0a3
..
d913fb4
100644
(file)
--- 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;
}