mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
fix crash in SongSelect when traversing while zero beatmaps are loaded
This commit is contained in:
@ -181,6 +181,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 (!Items.Any())
|
||||
return;
|
||||
|
||||
int originalIndex = Items.IndexOf(selectedBeatmap?.Drawables.First());
|
||||
int currentIndex = originalIndex;
|
||||
|
||||
|
Reference in New Issue
Block a user