Fix MSVC number conversion warning
authorSmallJoker <mk939@ymail.com>
Wed, 22 Jul 2015 08:11:34 +0000 (10:11 +0200)
committerest31 <MTest31@outlook.com>
Sat, 25 Jul 2015 15:38:04 +0000 (17:38 +0200)
src/script/lua_api/l_mapgen.cpp

index 2d67e2f29e032c13f370b163c015aec07a047124..bf5e3631ebfc22b0ae27747d3c795ec117857fb8 100644 (file)
@@ -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);
                }
        }