1
0
mirror of https://github.com/minetest/minetest.git synced 2024-09-24 13:30:30 +02:00

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

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