Do not trigger Random if no Beatmaps are imported

This commit is contained in:
tgi74000 2017-07-24 09:57:12 +02:00
parent 9bb404b799
commit 5d30efc090

View File

@ -177,6 +177,9 @@ namespace osu.Game.Screens.Select
public void SelectNextRandom()
{
if (groups.Count == 0)
return;
randomSelectedBeatmaps.Push(new KeyValuePair<BeatmapGroup, BeatmapPanel>(selectedGroup, selectedGroup.SelectedPanel));
var visibleGroups = getVisibleGroups();