From: SmallJoker Date: Sat, 15 Apr 2017 12:30:27 +0000 (+0200) Subject: Minimap: Do a double-typecast to fix compiling with MSVC X-Git-Tag: 0.4.16~244 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0f955bf7fa7a1376acdbc06a617c0f15f9fad467;p=oweals%2Fminetest.git Minimap: Do a double-typecast to fix compiling with MSVC --- diff --git a/src/script/lua_api/l_minimap.cpp b/src/script/lua_api/l_minimap.cpp index f32a07ce8..afb3766fb 100644 --- a/src/script/lua_api/l_minimap.cpp +++ b/src/script/lua_api/l_minimap.cpp @@ -115,7 +115,7 @@ int LuaMinimap::l_set_shape(lua_State *L) if (!lua_isnumber(L, 2)) return 0; - m->setMinimapShape((MinimapShape)lua_tonumber(L, 2)); + m->setMinimapShape((MinimapShape)((int)lua_tonumber(L, 2))); return 0; }