1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 14:12:54 +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
parent 2742fe46cf
commit 3ede685ee9

View File

@ -191,6 +191,7 @@ namespace osu.Game.Screens.Select
if (!visibleGroups.Any())
return;
if (selectedGroup != null)
randomSelectedBeatmaps.Push(new KeyValuePair<BeatmapGroup, BeatmapPanel>(selectedGroup, selectedGroup.SelectedPanel));
BeatmapGroup group;