projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd0ef1
)
Fix MSVC number conversion warning
author
SmallJoker
<mk939@ymail.com>
Wed, 22 Jul 2015 08:11:34 +0000
(10:11 +0200)
committer
est31
<MTest31@outlook.com>
Sat, 25 Jul 2015 15:38:04 +0000
(17:38 +0200)
src/script/lua_api/l_mapgen.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_mapgen.cpp
b/src/script/lua_api/l_mapgen.cpp
index 2d67e2f29e032c13f370b163c015aec07a047124..bf5e3631ebfc22b0ae27747d3c795ec117857fb8 100644
(file)
--- a/
src/script/lua_api/l_mapgen.cpp
+++ b/
src/script/lua_api/l_mapgen.cpp
@@
-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);
}
}