SelectRandom doesnt select hidden groups now

This commit is contained in:
Jorolf 2017-03-03 21:11:38 +01:00
parent 4888d8568c
commit b9e4c920c5

View File

@ -376,6 +376,7 @@ namespace osu.Game.Screens.Select
public void SelectRandom()
{
List<BeatmapGroup> groups = this.groups.Where( (BeatmapGroup selectGroup) => selectGroup.State != BeatmapGroupState.Hidden).ToList();
if (groups.Count < 1)
return;
BeatmapGroup group = groups[RNG.Next(groups.Count)];