From 0eed0e11c46715a3b22ca3e526078a841927963f Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Wed, 31 Jul 2013 13:58:15 -0700 Subject: Changing objname to type in the embedded data of an object. --- src/BLua.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/BLua.cc') 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); -- cgit v1.2.3