From e41da319418808d832e088c4c0b09ffaf8cc144e Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 1 Feb 2016 14:06:49 +0000 Subject: MirLua: some changes git-svn-id: http://svn.miranda-ng.org/main/trunk@16207 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_metatable.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/MirLua/src/mlua_metatable.h') diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h index ec5ee58451..bef297905e 100644 --- a/plugins/MirLua/src/mlua_metatable.h +++ b/plugins/MirLua/src/mlua_metatable.h @@ -135,8 +135,7 @@ public: { MT::name = tname; - lua_pushcfunction(L, lua__new); - lua_setglobal(L, MT::name); + lua_register(L, MT::name, lua__new); luaL_newmetatable(L, MT::name); lua_pushcfunction(L, lua__new); -- cgit v1.2.3