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