Fix event table pool

This commit is contained in:
Insality
2022-04-05 19:20:03 +03:00
parent dff522fbaa
commit 70e94ec14a
3 changed files with 11 additions and 8 deletions

View File

@@ -252,6 +252,7 @@ function DruidInstance.final(self)
local components = self.components_all
for i = #components, 1, -1 do
components[i]:on_internal_remove()
if components[i].on_remove then
components[i]:on_remove()
end

View File

@@ -14,7 +14,6 @@ function _M.fetch(tag)
pools[tag] = pool
pool.c = 0
pool[0] = 0
else
local len = pool[0]
if len > 0 then