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; }