From e9c2b5101246054a424bad2b45763107096e7a80 Mon Sep 17 00:00:00 2001 From: MrTheMake Date: Mon, 22 May 2017 01:59:10 +0200 Subject: [PATCH] Random the difficulty too --- osu.Game/Screens/Select/BeatmapCarousel.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/osu.Game/Screens/Select/BeatmapCarousel.cs b/osu.Game/Screens/Select/BeatmapCarousel.cs index ed03ff5593..2d6d212130 100644 --- a/osu.Game/Screens/Select/BeatmapCarousel.cs +++ b/osu.Game/Screens/Select/BeatmapCarousel.cs @@ -171,10 +171,8 @@ namespace osu.Game.Screens.Select if (visibleGroups.Count < 1) return; BeatmapGroup group = visibleGroups[RNG.Next(visibleGroups.Count)]; - BeatmapPanel panel = group?.BeatmapPanels.First(); - if (panel == null) - return; + BeatmapPanel panel = group.BeatmapPanels[RNG.Next(group.BeatmapPanels.Count)]; selectGroup(group, panel); }