Fixed LuaClass not cleaning the Lua stack
Former-commit-id: 32cc2a2d442b5c833cfcb913bc497a318a96d8e5
This commit is contained in:
parent
07858c97f3
commit
b07812d310
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue