diff --git a/osu.Game/Screens/Select/BeatmapCarousel.cs b/osu.Game/Screens/Select/BeatmapCarousel.cs index 2c7fde968e..7db9803804 100644 --- a/osu.Game/Screens/Select/BeatmapCarousel.cs +++ b/osu.Game/Screens/Select/BeatmapCarousel.cs @@ -73,7 +73,7 @@ namespace osu.Game.Screens.Select private readonly List groups = new List(); private Bindable randomType; - private HashSet seenGroups = new HashSet(); + private readonly HashSet seenGroups = new HashSet(); private readonly List panels = new List(); @@ -186,7 +186,7 @@ namespace osu.Game.Screens.Select notSeenGroups = visibleGroups; } - group = notSeenGroups[RNG.Next(notSeenGroups.Count())]; + group = notSeenGroups[RNG.Next(notSeenGroups.Count)]; seenGroups.Add(group); } else