diff --git a/LuaEngine.h b/LuaEngine.h index 5185243..c4aae66 100644 --- a/LuaEngine.h +++ b/LuaEngine.h @@ -893,7 +893,7 @@ public: // special method to get the object type lua_pushcfunction(L, typeT); - lua_setfield(L, metatable, "GetObjectType"); + lua_setfield(L, methods, "GetObjectType"); // pop methods and metatable lua_pop(L, 2);