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

This commit is contained in:
SmallJoker 2017-04-15 14:30:27 +02:00
parent a9aad4d061
commit 0f955bf7fa
1 changed files with 1 additions and 1 deletions

View 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;
}