aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_camera.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-05-25 20:20:16 +0200
committersfan5 <sfan5@live.de>2021-05-30 11:40:14 +0200
commita0047d6edcb300afeca16a2a63c5a112082736f3 (patch)
tree634092331781cca4dd75f1b3885ba57f48a59a3b /src/script/lua_api/l_camera.cpp
parenta12017c564782b2645b3020a6b998b116789c7cc (diff)
downloadminetest-a0047d6edcb300afeca16a2a63c5a112082736f3.tar.xz
script: Replace calls to depreated luaL_openlib
Diffstat (limited to 'src/script/lua_api/l_camera.cpp')
-rw-r--r--src/script/lua_api/l_camera.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_camera.cpp b/src/script/lua_api/l_camera.cpp
index 40251154c..d85d16283 100644
--- a/src/script/lua_api/l_camera.cpp
+++ b/src/script/lua_api/l_camera.cpp
@@ -219,7 +219,7 @@ void LuaCamera::Register(lua_State *L)
lua_pop(L, 1);
- luaL_openlib(L, 0, methods, 0);
+ luaL_register(L, nullptr, methods);
lua_pop(L, 1);
}