diff --git a/include/Nazara/Lua/LuaClass.inl b/include/Nazara/Lua/LuaClass.inl index ea86b6f1a..b2bbdbc3e 100644 --- a/include/Nazara/Lua/LuaClass.inl +++ b/include/Nazara/Lua/LuaClass.inl @@ -405,6 +405,7 @@ namespace Nz if (it != info->instanceGetters.end()) instance = it->second(lua); } + lua.Pop(2); } lua.Remove(1); //< Remove the instance from the Lua stack