Skip to content

Commit

Permalink
fixed array limit check when reading Lua specialtiles table
Browse files Browse the repository at this point in the history
  • Loading branch information
MetaDucky authored and PilzAdam committed Nov 16, 2013
1 parent 371b39a commit 35606cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/common/c_content.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 35606cf

Please sign in to comment.