Skip to content

Commit edf6889

Browse files
fix switching filters to do its intended behavior
1 parent 5cd47a4 commit edf6889

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
@@ -510,10 +510,10 @@ class FreeplayState extends MusicBeatSubState
510510
generateSongList({filterType: REGEXP, filterData: str}, true);
511511
}
512512

513-
// If the current song is still in the list (aka not null?), we'll land on it
513+
// If the current song is still in the list, or if it was random, we'll land on it
514514
// Otherwise we want to land on the first song of the group, rather than random song when changing letter sorts
515515
// that is, only if there's more than one song in the group!
516-
if (curSong != null && currentFilteredSongs.length > 1)
516+
if (curSong == null || currentFilteredSongs.contains(curSong))
517517
{
518518
changeSelection();
519519
}

0 commit comments

Comments
 (0)