mirror of
https://github.com/ppy/osu.git
synced 2026-05-29 03:59:54 +08:00
Use Any instead of First to avoid potential throw.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user