This commit is contained in:
Eduardo Bart
2011-08-20 18:37:27 -03:00
parent 7584c806f4
commit d0f47f47a4
5 changed files with 7 additions and 9 deletions

View File

@@ -12,8 +12,10 @@ LuaObject::~LuaObject()
void LuaObject::releaseLuaFieldsTable()
{
if(m_fieldsTableRef != -1)
if(m_fieldsTableRef != -1) {
g_lua.unref(m_fieldsTableRef);
m_fieldsTableRef = -1;
}
}
void LuaObject::luaSetField(const std::string& key)