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:
parent
f156ac25be
commit
d8ca11bf0d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user