Skip to content

Commit 35606cf

Browse files
MetaDuckyPilzAdam
MetaDucky
authored andcommittedNov 16, 2013
fixed array limit check when reading Lua specialtiles table
1 parent 371b39a commit 35606cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/script/common/c_content.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ ContentFeatures read_content_features(lua_State *L, int index)
334334
// removes value, keeps key for next iteration
335335
lua_pop(L, 1);
336336
i++;
337-
if(i==6){
337+
if(i==CF_SPECIAL_COUNT){
338338
lua_pop(L, 1);
339339
break;
340340
}

0 commit comments

Comments
 (0)