diff options
-rw-r--r-- | src/script/lua_api/l_minimap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_minimap.cpp b/src/script/lua_api/l_minimap.cpp index f32a07ce8..afb3766fb 100644 --- a/src/script/lua_api/l_minimap.cpp +++ b/src/script/lua_api/l_minimap.cpp @@ -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; } |