Minimap: Do a double-typecast to fix compiling with MSVC
authorSmallJoker <mk939@ymail.com>
Sat, 15 Apr 2017 12:30:27 +0000 (14:30 +0200)
committerSmallJoker <mk939@ymail.com>
Sat, 15 Apr 2017 12:30:27 +0000 (14:30 +0200)
src/script/lua_api/l_minimap.cpp

index f32a07ce8cf462eeec010183cb9e772501cb92c6..afb3766fbf71be68bc30267f17c6fc54c2619ab5 100644 (file)
@@ -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;
 }