From: MetaDucky Date: Thu, 14 Nov 2013 17:31:45 +0000 (+0100) Subject: fixed array limit check when reading Lua specialtiles table X-Git-Tag: 0.4.8~45 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=35606cfb679d2d5ead0780c84371089745630c1b;p=oweals%2Fminetest.git fixed array limit check when reading Lua specialtiles table --- 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; }