Skip to content

Commit 811b9e3

Browse files
VioletSnowLeopardmoondroidcoder
authored andcommitted
don't freeze game if it fails to find target song/difficulty
1 parent 37b9823 commit 811b9e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/funkin/ui/freeplay/FreeplayState.hx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,6 +2466,8 @@ class FreeplayState extends MusicBeatSubState
24662466
if (targetSongNullable == null)
24672467
{
24682468
FlxG.log.warn('WARN: could not find song with id (${targetSongId})');
2469+
busy = false;
2470+
letterSort.inputEnabled = true;
24692471
return;
24702472
}
24712473
var targetSong:Song = targetSongNullable;
@@ -2476,6 +2478,8 @@ class FreeplayState extends MusicBeatSubState
24762478
if (targetDifficulty == null)
24772479
{
24782480
FlxG.log.warn('WARN: could not find difficulty with id (${targetDifficultyId})');
2481+
busy = false;
2482+
letterSort.inputEnabled = true;
24792483
return;
24802484
}
24812485

0 commit comments

Comments
 (0)