diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/BLua.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BLua.cc b/src/BLua.cc index 5bbdd07..32947cd 100644 --- a/src/BLua.cc +++ b/src/BLua.cc @@ -800,8 +800,8 @@ void Balau::LuaObjectFactory::pushMe(Lua & L, LuaObjectBase * o, const char * ob pushMeta(L, "__gc", LuaStatics::collector); L.settable(-3, true); if (objname && *objname) { - L.push("__objname"); - L.push(objname); + L.push("__type"); + L.getglobal(objname); L.settable(-3, true); } pushMethod(L, "destroy", LuaStatics::destructor); |