From 722278fdd2f7b4601d8aaaed988e4a44317304ff Mon Sep 17 00:00:00 2001 From: haven <85509162+cookiesock@users.noreply.github.com> Date: Tue, 22 Oct 2024 17:54:06 -0500 Subject: [PATCH] fix not returning to `PlayState` when leaving the options menu --- source/funkin/menus/PauseSubState.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/funkin/menus/PauseSubState.hx b/source/funkin/menus/PauseSubState.hx index fb2326e5..f48a4735 100644 --- a/source/funkin/menus/PauseSubState.hx +++ b/source/funkin/menus/PauseSubState.hx @@ -153,6 +153,7 @@ class PauseSubState extends MusicBeatSubstate persistentDraw = false; openSubState(new KeybindsOptions()); case "Change Options": + TreeMenu.lastState = PlayState; FlxG.switchState(new OptionsMenu()); case "Exit to charter": FlxG.switchState(new funkin.editors.charter.Charter(PlayState.SONG.meta.name, PlayState.difficulty, false)); @@ -205,4 +206,4 @@ class PauseSubState extends MusicBeatSubstate item.alpha = 0.6; } } -} \ No newline at end of file +}