projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7433d65
)
Don't use variable length arrays
author
ShadowNinja
<shadowninja@minetest.net>
Thu, 28 Nov 2013 16:09:51 +0000
(11:09 -0500)
committer
ShadowNinja
<shadowninja@minetest.net>
Thu, 28 Nov 2013 16:22:41 +0000
(11:22 -0500)
src/rollback.cpp
patch
|
blob
|
history
diff --git
a/src/rollback.cpp
b/src/rollback.cpp
index 4dc462af618f7b0ac455454c935a5188a4f22527..bae81ddb0a673bae80b759c30adf9ddaaadf0ac0 100644
(file)
--- a/
src/rollback.cpp
+++ b/
src/rollback.cpp
@@
-429,7
+429,7
@@
bool SQL_registerRow(ActionRow row)
*/
sqlite3_reset(dbs_do);
- int bind [2
0 + (((bool) row.id) ? 1 : 0)
], ii = 0;
+ int bind [2
2
], ii = 0;
bool nodeMeta = false;
bind[ii++] = sqlite3_bind_int(dbs_do, 1, row.actor);