summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/lua_api/l_minimap.cpp2
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;
}