mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Fix potential nullref.
This commit is contained in:
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user