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>
This commit is contained in:
@@ -292,6 +292,7 @@ class StrumLine extends FlxTypedGroup<Strum> {
|
|||||||
super.destroy();
|
super.destroy();
|
||||||
if(startingPos != null)
|
if(startingPos != null)
|
||||||
startingPos.put();
|
startingPos.put();
|
||||||
|
notes = FlxDestroyUtil.destroy(notes);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user