Added suggestions by code inspector

This commit is contained in:
Patrick Andersson 2017-05-31 22:04:29 +02:00
parent 9592e9778b
commit a3945bb11d
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ public IEnumerable<BeatmapSetInfo> Beatmaps
private readonly List<BeatmapGroup> groups = new List<BeatmapGroup>();
private Bindable<SelectionRandomType> randomType;
private HashSet<BeatmapGroup> seenGroups = new HashSet<BeatmapGroup>();
private readonly HashSet<BeatmapGroup> seenGroups = new HashSet<BeatmapGroup>();
private readonly List<Panel> panels = new List<Panel>();
@ -186,7 +186,7 @@ public void SelectRandom()
notSeenGroups = visibleGroups;
}
group = notSeenGroups[RNG.Next(notSeenGroups.Count())];
group = notSeenGroups[RNG.Next(notSeenGroups.Count)];
seenGroups.Add(group);
}
else