1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-27 15:00:30 +02:00

fixed array limit check when reading Lua specialtiles table

This commit is contained in:
MetaDucky 2013-11-14 18:31:45 +01:00 committed by PilzAdam
parent 371b39a09a
commit 35606cfb67

View File

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