summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-11-11 13:19:06 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-11-11 13:19:06 +0000
commitd6990ccddb9d6f432fd0392e241d48f95102cf13 (patch)
treeffb3893ee12f795ee75f3f10599192c7c9bd7dbc
parent88c8a10294620690a63de46d1314fb549f99e3a7 (diff)
MirLua: fixed metatable setting
git-svn-id: http://svn.miranda-ng.org/main/trunk@15709 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/MirLua/src/mlua_metatable.h4
1 files changed, 2 insertions, 2 deletions
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);