From 1f224bef228c496d789aeed1f44c6517668107a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?soy=EF=BC=8A?= <46652463+soy-asterisk@users.noreply.github.com> Date: Sun, 5 Jan 2025 05:23:34 +0900 Subject: [PATCH] Fixed a bug where notes (NoteGroup) were not destroyed when StrumLine was destroyed. (#519) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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> --- source/funkin/game/StrumLine.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/source/funkin/game/StrumLine.hx b/source/funkin/game/StrumLine.hx index 3e88bc7cc..b5880acc6 100644 --- a/source/funkin/game/StrumLine.hx +++ b/source/funkin/game/StrumLine.hx @@ -292,6 +292,7 @@ class StrumLine extends FlxTypedGroup { super.destroy(); if(startingPos != null) startingPos.put(); + notes = FlxDestroyUtil.destroy(notes); } /**