destroy rather than kill game objects
This commit is contained in:
parent
8a8e5c43ea
commit
3b83851fb9
1 changed files with 2 additions and 1 deletions
|
|
@ -40,7 +40,8 @@ function Area:destroy()
|
|||
end
|
||||
for i = #self.game_objects, 1, -1 do
|
||||
local game_object = self.game_objects[i]
|
||||
game_object:kill()
|
||||
---@diagnostic disable-next-line: invisible
|
||||
game_object:destroy()
|
||||
table.remove(self.game_objects, i)
|
||||
end
|
||||
self.game_objects = {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue