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");