Skip to content

Commit

Permalink
tools: destroy unit's children too
Browse files Browse the repository at this point in the history
Part-of: #215
  • Loading branch information
dbartolini committed Dec 23, 2024
1 parent a23a196 commit 18beea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/core/editors/sound.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function SoundObject:unit_id()
end

function SoundObject:destroy()
World.destroy_unit(self._world, self._unit_id)
UnitUtils.destroy_tree(self._world, self._unit_id)
end

function SoundObject:name()
Expand Down
2 changes: 1 addition & 1 deletion samples/core/editors/unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function UnitBox:unit_id()
end

function UnitBox:destroy()
World.destroy_unit(self._world, self._unit_id)
UnitUtils.destroy_tree(self._world, self._unit_id)
end

function UnitBox:local_position()
Expand Down

0 comments on commit 18beea9

Please sign in to comment.