1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 21:23:04 +08:00

Fix potential nullref.

This commit is contained in:
Dean Herbert 2017-03-02 22:17:14 +09:00
parent f9b87ad08c
commit ecd3453774
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -348,7 +348,7 @@ namespace osu.Game.Screens.Select
public void SelectNext(int direction = 1, bool skipDifficulties = true) public void SelectNext(int direction = 1, bool skipDifficulties = true)
{ {
if (!skipDifficulties) if (!skipDifficulties && SelectedGroup != null)
{ {
int i = SelectedGroup.BeatmapPanels.IndexOf(SelectedPanel) + direction; int i = SelectedGroup.BeatmapPanels.IndexOf(SelectedPanel) + direction;