From 7cd6059c87a25a5e696bc191d711a15acba82555 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Sun, 27 Jul 2025 08:18:28 +0700 Subject: [PATCH] Whoops --- source/flixel/sound/FlxSound.hx | 1 + source/funkin/options/TreeMenuScreen.hx | 2 +- source/funkin/options/type/TextOption.hx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/flixel/sound/FlxSound.hx b/source/flixel/sound/FlxSound.hx index 6e83609e..e40bc407 100644 --- a/source/flixel/sound/FlxSound.hx +++ b/source/flixel/sound/FlxSound.hx @@ -312,6 +312,7 @@ class FlxSound extends FlxBasic { _source = null; _sound = null; + if (autoDestroy) persist = false; reset(); } else if (_channel != null && _channel.__isValid) { diff --git a/source/funkin/options/TreeMenuScreen.hx b/source/funkin/options/TreeMenuScreen.hx index 5c8a1d42..17b012e1 100644 --- a/source/funkin/options/TreeMenuScreen.hx +++ b/source/funkin/options/TreeMenuScreen.hx @@ -131,7 +131,7 @@ class TreeMenuScreen extends FlxSpriteGroup { if (parent == null) return destroy(); else parent.removeMenu(this); - CoolUtil.playMenuSFX(CANCEL); + CoolUtil.playMenuSFX(CANCEL).persist = true; } public function changeSelection(change:Int, force:Bool = false) { diff --git a/source/funkin/options/type/TextOption.hx b/source/funkin/options/type/TextOption.hx index e859b668..64b93b25 100644 --- a/source/funkin/options/type/TextOption.hx +++ b/source/funkin/options/type/TextOption.hx @@ -22,7 +22,7 @@ class TextOption extends OptionType { } public function new(text:String, desc:String, ?suffix:String = "", ?selectCallback:Void->Void = null) { - this.suffix = suffix; + @:bypassAccessor this.suffix = suffix; this.selectCallback = selectCallback; __text = new Alphabet(20, 20, "", "bold");