From 35606cfb679d2d5ead0780c84371089745630c1b Mon Sep 17 00:00:00 2001 From: MetaDucky Date: Thu, 14 Nov 2013 18:31:45 +0100 Subject: [PATCH] fixed array limit check when reading Lua specialtiles table --- src/script/common/c_content.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1