From d6990ccddb9d6f432fd0392e241d48f95102cf13 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 11 Nov 2015 13:19:06 +0000 Subject: MirLua: fixed metatable setting git-svn-id: http://svn.miranda-ng.org/main/trunk@15709 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_metatable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua') diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h index dd8f50032d..2a11648420 100644 --- a/plugins/MirLua/src/mlua_metatable.h +++ b/plugins/MirLua/src/mlua_metatable.h @@ -48,8 +48,8 @@ private: udata = (T**)lua_newuserdata(L, sizeof(T*)); *udata = MT::Init(obj); //case LUA_TUSERDATA: - // luaL_setmetatable(L, MT::name); - // return 1; + luaL_setmetatable(L, MT::name); + return 1; } lua_pushnil(L); -- cgit v1.2.3