mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
Avoid unnecessary use of linq
This commit is contained in:
parent
b90b1e326e
commit
a3f05ca9ec
@ -267,7 +267,7 @@ namespace osu.Game.Screens.Select
|
||||
set = visibleSets.ElementAt(RNG.Next(visibleSets.Count));
|
||||
|
||||
var visibleBeatmaps = set.Beatmaps.Where(s => !s.Filtered).ToList();
|
||||
select(visibleBeatmaps.Skip(RNG.Next(visibleBeatmaps.Count)).FirstOrDefault());
|
||||
select(visibleBeatmaps[RNG.Next(visibleBeatmaps.Count)]);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user