mirror of
https://github.com/moparisthebest/minetest
synced 2025-01-10 21:28:02 -05:00
fixed array limit check when reading Lua specialtiles table
This commit is contained in:
parent
371b39a09a
commit
35606cfb67
@ -334,7 +334,7 @@ ContentFeatures read_content_features(lua_State *L, int index)
|
|||||||
// removes value, keeps key for next iteration
|
// removes value, keeps key for next iteration
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
i++;
|
i++;
|
||||||
if(i==6){
|
if(i==CF_SPECIAL_COUNT){
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user