forked from Mirrorlandia_minetest/minetest
Fix MSVC number conversion warning
This commit is contained in:
parent
ffd0ef16c4
commit
454a290370
@ -674,7 +674,7 @@ int ModApiMapgen::l_set_gen_notify(lua_State *L)
|
|||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
while (lua_next(L, 2)) {
|
while (lua_next(L, 2)) {
|
||||||
if (lua_isnumber(L, -1))
|
if (lua_isnumber(L, -1))
|
||||||
emerge->gen_notify_on_deco_ids.insert(lua_tonumber(L, -1));
|
emerge->gen_notify_on_deco_ids.insert((u32)lua_tonumber(L, -1));
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user