aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_minimap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/lua_api/l_minimap.cpp')
-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 3bbb6e5e3..a135e0bd5 100644
--- a/src/script/lua_api/l_minimap.cpp
+++ b/src/script/lua_api/l_minimap.cpp
@@ -211,7 +211,7 @@ void LuaMinimap::Register(lua_State *L)
lua_pop(L, 1); // drop metatable
- luaL_openlib(L, 0, methods, 0); // fill methodtable
+ luaL_register(L, nullptr, methods); // fill methodtable
lua_pop(L, 1); // drop methodtable
}