mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 18:32:55 +08:00
Fix potential exception if button is pressed before selection
This commit is contained in:
parent
1b4c31a84f
commit
8f6d52550f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user