Skip to content

Commit 302beb2

Browse files
VirtuGuyHundrec
authored andcommitted
Fix Menu Music Not Playing After Freeplay Exit
1 parent a702040 commit 302beb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/funkin/ui/freeplay/FreeplayState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2980,6 +2980,8 @@ class FreeplayState extends MusicBeatSubState
29802980

29812981
clearPreviews();
29822982

2983+
if (FlxG.sound.music != null) FlxG.sound.music.stop();
2984+
29832985
if (curSelected == 0)
29842986
{
29852987
FunkinSound.playMusic('freeplayRandom',
@@ -3054,8 +3056,6 @@ class FreeplayState extends MusicBeatSubState
30543056
}
30553057

30563058
previewTimers = [];
3057-
3058-
if (FlxG.sound.music != null) FlxG.sound.music.stop();
30593059
}
30603060

30613061
public function switchBackingImage(?freeplaySongData:FreeplaySongData):Void

0 commit comments

Comments
 (0)