Skip to content

Commit

Permalink
Minimap: Do a double-typecast to fix compiling with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Apr 15, 2017
1 parent a9aad4d commit 0f955bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/lua_api/l_minimap.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0f955bf

Please sign in to comment.