fix undeclared variable

This commit is contained in:
Alexsandro Percy 2024-08-23 18:38:10 -03:00
parent 572133b4c1
commit 7c1335c7f1

View file

@ -385,8 +385,8 @@ function airutils.destroy(self, by_name, by_automation)
child:remove() child:remove()
end end
local destroyed_ent = nil
if by_automation == false then if by_automation == false then
local destroyed_ent = nil
if self._destroyed_ent then if self._destroyed_ent then
destroyed_ent = self._destroyed_ent destroyed_ent = self._destroyed_ent
end end