summaryrefslogtreecommitdiff
path: root/src/rollback.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2013-11-28 11:09:51 -0500
committerShadowNinja <shadowninja@minetest.net>2013-11-28 11:22:41 -0500
commitff25218374bd1bfc65433543ceee336924a06925 (patch)
tree575bb10bd4ce240f5a4144a3280179718281726b /src/rollback.cpp
parent7433d65d3e383cd3d2f5ced38d9109e9fd7c72c0 (diff)
downloadminetest-ff25218374bd1bfc65433543ceee336924a06925.tar.gz
minetest-ff25218374bd1bfc65433543ceee336924a06925.tar.bz2
minetest-ff25218374bd1bfc65433543ceee336924a06925.zip
Don't use variable length arrays
Diffstat (limited to 'src/rollback.cpp')
-rw-r--r--src/rollback.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rollback.cpp b/src/rollback.cpp
index 4dc462af6..bae81ddb0 100644
--- a/src/rollback.cpp
+++ b/src/rollback.cpp
@@ -429,7 +429,7 @@ bool SQL_registerRow(ActionRow row)
*/
sqlite3_reset(dbs_do);
- int bind [20 + (((bool) row.id) ? 1 : 0)], ii = 0;
+ int bind [22], ii = 0;
bool nodeMeta = false;
bind[ii++] = sqlite3_bind_int(dbs_do, 1, row.actor);