diff options
author | MetaDucky <metaducky AT gmail DOT com> | 2013-11-14 18:31:45 +0100 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-11-16 15:31:17 +0100 |
commit | 35606cfb679d2d5ead0780c84371089745630c1b (patch) | |
tree | ed25d25d2fbb9666ec9c06350767e7df548b1752 /src/script/common | |
parent | 371b39a09a0bf248d674fae718f5ff369e895b66 (diff) | |
download | minetest-35606cfb679d2d5ead0780c84371089745630c1b.tar.gz minetest-35606cfb679d2d5ead0780c84371089745630c1b.tar.bz2 minetest-35606cfb679d2d5ead0780c84371089745630c1b.zip |
fixed array limit check when reading Lua specialtiles table
Diffstat (limited to 'src/script/common')
-rw-r--r-- | src/script/common/c_content.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index 2ad4c9565..65239ff1f 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -334,7 +334,7 @@ ContentFeatures read_content_features(lua_State *L, int index) // removes value, keeps key for next iteration lua_pop(L, 1); i++; - if(i==6){ + if(i==CF_SPECIAL_COUNT){ lua_pop(L, 1); break; } |