mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Safety check
This commit is contained in:
parent
bd6d3f1473
commit
a31507ff0e
@ -157,6 +157,9 @@ namespace osu.Game.Tournament.Screens.MapPool
|
||||
|
||||
private void addForBeatmap(int beatmapId)
|
||||
{
|
||||
if (currentMatch.Value == null)
|
||||
return;
|
||||
|
||||
if (currentMatch.Value.Grouping.Value.Beatmaps.All(b => b.BeatmapInfo.OnlineBeatmapID != beatmapId))
|
||||
// don't attempt to add if the beatmap isn't in our pool
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user