1
0
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:
Dean Herbert 2018-01-09 12:43:10 +09:00
parent b90b1e326e
commit a3f05ca9ec

View File

@ -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;
}