From f23eddcf2c221bb51b425746c2e7dbabc0890105 Mon Sep 17 00:00:00 2001 From: Abnormal <86753001+AbnormalPoof@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:49:51 -0500 Subject: [PATCH] forgot vocals aren't included (#1240) Co-authored-by: Hyper_ <40342021+NotHyper-474@users.noreply.github.com> --- source/funkin/play/PauseSubState.hx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/funkin/play/PauseSubState.hx b/source/funkin/play/PauseSubState.hx index 2ebcf63a0..01b73e294 100644 --- a/source/funkin/play/PauseSubState.hx +++ b/source/funkin/play/PauseSubState.hx @@ -1041,14 +1041,18 @@ class PauseSubState extends MusicBeatSubState * Quit the game and return to the chart editor. * @param state The current PauseSubState. */ + @:access(funkin.play.PlayState) static function quitToChartEditor(state:PauseSubState):Void { #if FEATURE_MOBILE_ADVERTISEMENTS AdMobUtil.removeBanner(); #end - if (FlxG.sound.music != null) FlxG.sound.music.pause(); // Don't reset song position! + // This should come first because the sounds list gets cleared! + PlayState.instance?.forEachPausedSound(s -> s.destroy()); state.close(); - PlayState.instance.close(); // This only works because PlayState is a substate! + FlxG.sound.music?.pause(); // Don't reset song position! + PlayState.instance?.vocals?.pause(); + PlayState.instance?.close(); // This only works because PlayState is a substate! } }