summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMetaDucky <metaducky AT gmail DOT com>2013-11-14 18:31:45 +0100
committerPilzAdam <pilzadam@minetest.net>2013-11-16 15:31:17 +0100
commit35606cfb679d2d5ead0780c84371089745630c1b (patch)
treeed25d25d2fbb9666ec9c06350767e7df548b1752 /src
parent371b39a09a0bf248d674fae718f5ff369e895b66 (diff)
downloadminetest-35606cfb679d2d5ead0780c84371089745630c1b.tar.gz
minetest-35606cfb679d2d5ead0780c84371089745630c1b.tar.bz2
minetest-35606cfb679d2d5ead0780c84371089745630c1b.zip
fixed array limit check when reading Lua specialtiles table
Diffstat (limited to 'src')
-rw-r--r--src/script/common/c_content.cpp2
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;
}