Remember selection when exiting to Title Screen

This commit is contained in:
Hundrec 2025-03-18 04:45:44 -06:00 committed by Lasercar
parent 07c872c775
commit bf36a86877

View file

@ -466,6 +466,7 @@ class MainMenuState extends MusicBeatState
if (controls.BACK && menuItems.enabled && !menuItems.busy)
{
rememberedSelectedIndex = menuItems.selectedIndex;
FlxG.switchState(() -> new TitleState());
FunkinSound.playOnce(Paths.sound('cancelMenu'));
}