mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Minimap: Do a double-typecast to fix compiling with MSVC
This commit is contained in:
parent
a9aad4d061
commit
0f955bf7fa
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue