1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:03:13 +08:00

Fix potential exception if button is pressed before selection

This commit is contained in:
smoogipoo 2020-06-26 20:32:13 +09:00
parent 1b4c31a84f
commit 8f6d52550f

View File

@ -279,6 +279,9 @@ namespace osu.Game.Screens.Select
/// <param name="skipDifficulties">Whether to skip individual difficulties and only increment over full groups.</param>
public void SelectNext(int direction = 1, bool skipDifficulties = true)
{
if (selectedBeatmap == null)
return;
if (beatmapSets.All(s => s.Filtered.Value))
return;