mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Minimap: Do a double-typecast to fix compiling with MSVC
This commit is contained in:
@@ -115,7 +115,7 @@ int LuaMinimap::l_set_shape(lua_State *L)
|
|||||||
if (!lua_isnumber(L, 2))
|
if (!lua_isnumber(L, 2))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
m->setMinimapShape((MinimapShape)lua_tonumber(L, 2));
|
m->setMinimapShape((MinimapShape)((int)lua_tonumber(L, 2)));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user