diff options
author | ShadowNinja <shadowninja@minetest.net> | 2013-11-28 11:09:51 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-11-28 11:22:41 -0500 |
commit | ff25218374bd1bfc65433543ceee336924a06925 (patch) | |
tree | 575bb10bd4ce240f5a4144a3280179718281726b /src/rollback.cpp | |
parent | 7433d65d3e383cd3d2f5ced38d9109e9fd7c72c0 (diff) | |
download | minetest-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.cpp | 2 |
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); |