summaryrefslogtreecommitdiff
path: root/src/BLua.cc
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2013-07-31 13:58:15 -0700
committerNicolas Noble <pixel@nobis-crew.org>2013-07-31 13:58:15 -0700
commit0eed0e11c46715a3b22ca3e526078a841927963f (patch)
treef26da60d8ff86e6b99a314270355016814846c3e /src/BLua.cc
parent5ce610659adea3159549d4863c2479163fce89f4 (diff)
Changing objname to type in the embedded data of an object.
Diffstat (limited to 'src/BLua.cc')
-rw-r--r--src/BLua.cc4
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);