Skip to content
Permalink
Browse files

Minimap: Do a double-typecast to fix compiling with MSVC

  • Loading branch information
SmallJoker committed Apr 15, 2017
1 parent a9aad4d commit 0f955bf7fa7a1376acdbc06a617c0f15f9fad467
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 0f955bf

Please sign in to comment.
You can’t perform that action at this time.