mirror of https://github.com/ppy/osu
Fix crash on random selection from a previously null selection
This commit is contained in:
parent
2742fe46cf
commit
3ede685ee9
|
@ -191,7 +191,8 @@ public void SelectNextRandom()
|
|||
if (!visibleGroups.Any())
|
||||
return;
|
||||
|
||||
randomSelectedBeatmaps.Push(new KeyValuePair<BeatmapGroup, BeatmapPanel>(selectedGroup, selectedGroup.SelectedPanel));
|
||||
if (selectedGroup != null)
|
||||
randomSelectedBeatmaps.Push(new KeyValuePair<BeatmapGroup, BeatmapPanel>(selectedGroup, selectedGroup.SelectedPanel));
|
||||
|
||||
BeatmapGroup group;
|
||||
|
||||
|
|
Loading…
Reference in New Issue