Skip to content

Commit

Permalink
Fixed a bug where notes (NoteGroup) were not destroyed when StrumLine…
Browse files Browse the repository at this point in the history
… was destroyed. (CodenameCrew#519)

* Fixed a bug where notes (NoteGroup) were not destroyed when StrumLine was destroyed.

* using destroyutil

---------

Co-authored-by: ⍚~Nex <[email protected]>
  • Loading branch information
soy-asterisk and NexIsDumb authored Jan 4, 2025
1 parent 300f38d commit 1f224be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/funkin/game/StrumLine.hx
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ class StrumLine extends FlxTypedGroup<Strum> {
super.destroy();
if(startingPos != null)
startingPos.put();
notes = FlxDestroyUtil.destroy(notes);
}

/**
Expand Down

0 comments on commit 1f224be

Please sign in to comment.