mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 21:42: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>
|
/// <param name="skipDifficulties">Whether to skip individual difficulties and only increment over full groups.</param>
|
||||||
public void SelectNext(int direction = 1, bool skipDifficulties = true)
|
public void SelectNext(int direction = 1, bool skipDifficulties = true)
|
||||||
{
|
{
|
||||||
|
if (selectedBeatmap == null)
|
||||||
|
return;
|
||||||
|
|
||||||
if (beatmapSets.All(s => s.Filtered.Value))
|
if (beatmapSets.All(s => s.Filtered.Value))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user