Skip to content

Commit

Permalink
Fix MSVC number conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker authored and est31 committed Jul 25, 2015
1 parent ffd0ef1 commit 454a290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/lua_api/l_mapgen.cpp
Expand Up @@ -674,7 +674,7 @@ int ModApiMapgen::l_set_gen_notify(lua_State *L)
lua_pushnil(L);
while (lua_next(L, 2)) {
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);
}
}
Expand Down

0 comments on commit 454a290

Please sign in to comment.