1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix -Wunused-but-set-variable warnings

This commit is contained in:
Desour 2023-08-29 14:23:40 +02:00 committed by Gregor Parzefall
parent 95056f9783
commit 2ad4c9e0ce
2 changed files with 1 additions and 4 deletions

View file

@ -455,10 +455,8 @@ size_t get_biome_list(lua_State *L, int index,
// returns number of failed resolutions
size_t fail_count = 0;
size_t count = 0;
for (lua_pushnil(L); lua_next(L, index); lua_pop(L, 1)) {
count++;
Biome *biome = get_or_load_biome(L, -1, biomemgr);
if (!biome) {
fail_count++;