Skip to content

Commit 1f224be

Browse files
Fixed a bug where notes (NoteGroup) were not destroyed when StrumLine was destroyed. (#519)
* Fixed a bug where notes (NoteGroup) were not destroyed when StrumLine was destroyed. * using destroyutil --------- Co-authored-by: ⍚~Nex <87421482+NexIsDumb@users.noreply.github.com>
1 parent 300f38d commit 1f224be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/funkin/game/StrumLine.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ class StrumLine extends FlxTypedGroup<Strum> {
292292
super.destroy();
293293
if(startingPos != null)
294294
startingPos.put();
295+
notes = FlxDestroyUtil.destroy(notes);
295296
}
296297

297298
/**

0 commit comments

Comments
 (0)