Skip to content

Commit 454a290

Browse files
SmallJokerest31
authored andcommittedJul 25, 2015
Fix MSVC number conversion warning
1 parent ffd0ef1 commit 454a290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/script/lua_api/l_mapgen.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ int ModApiMapgen::l_set_gen_notify(lua_State *L)
674674
lua_pushnil(L);
675675
while (lua_next(L, 2)) {
676676
if (lua_isnumber(L, -1))
677-
emerge->gen_notify_on_deco_ids.insert(lua_tonumber(L, -1));
677+
emerge->gen_notify_on_deco_ids.insert((u32)lua_tonumber(L, -1));
678678
lua_pop(L, 1);
679679
}
680680
}

0 commit comments

Comments
 (0)