1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 03:02:53 +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
parent f156ac25be
commit d8ca11bf0d

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)