1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 04:49:58 +08:00

Use Any instead of First to avoid potential throw.

This commit is contained in:
Dean Herbert
2016-10-29 04:29:43 +09:00
Unverified
parent f156ac25be
commit d8ca11bf0d
+1 -1
View File
@@ -181,7 +181,7 @@ namespace osu.Game.GameModes.Play
return;
//this is VERY temporary logic.
beatmapSetFlow.Children.Cast<BeatmapGroup>().First(b =>
beatmapSetFlow.Children.Cast<BeatmapGroup>().Any(b =>
{
var panel = b.BeatmapPanels.FirstOrDefault(p => p.Beatmap.Equals(beatmap));
if (panel != null)