1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-07 00:44:18 +08:00

Fix crash on random selection from a previously null selection

This commit is contained in:
Dean Herbert
2017-09-01 18:44:51 +09:00
Unverified
parent 2742fe46cf
commit 3ede685ee9
+2 -1
View File
@@ -191,7 +191,8 @@ namespace osu.Game.Screens.Select
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;