From 0f955bf7fa7a1376acdbc06a617c0f15f9fad467 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 15 Apr 2017 14:30:27 +0200 Subject: [PATCH] Minimap: Do a double-typecast to fix compiling with MSVC --- src/script/lua_api/l_minimap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1