mirror of
https://github.com/minetest/minetest.git
synced 2025-02-17 10:23:47 +01:00
fixed array limit check when reading Lua specialtiles table
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user