Fixed LuaClass not cleaning the Lua stack

Former-commit-id: 32cc2a2d442b5c833cfcb913bc497a318a96d8e5
This commit is contained in:
Lynix 2014-03-26 21:23:21 +01:00
parent 07858c97f3
commit b07812d310
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,7 @@ void NzLuaClass<T>::Register(NzLuaInstance& lua)
index++;
}
}
lua.Pop();
lua.Pop(); // On pop la metatable
if (m_info->constructor)
{
@ -93,6 +93,7 @@ void NzLuaClass<T>::Register(NzLuaInstance& lua)
lua.PushCFunction(ConstructorProxy, 1);
lua.SetGlobal(m_info->name);
}
lua.Pop(); // On pop l'Userdata (contenant nos informations)
}
template<class T>