Fix MSVC number conversion warning

master
SmallJoker 2015-07-22 10:11:34 +02:00 committed by est31
parent ffd0ef16c4
commit 454a290370
1 changed files with 1 additions and 1 deletions

View File

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