mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 12:02:54 +08:00
Fix nullref during room creation (#4228)
This commit is contained in:
parent
959b1ac845
commit
7ec0b4ba77
@ -55,6 +55,9 @@ namespace osu.Game.Screens.Multi.Match.Components
|
||||
|
||||
private void beatmapAdded(BeatmapSetInfo model, bool existing, bool silent)
|
||||
{
|
||||
if (Beatmap.Value == null)
|
||||
return;
|
||||
|
||||
if (model.Beatmaps.Any(b => b.OnlineBeatmapID == Beatmap.Value.OnlineBeatmapID))
|
||||
Schedule(() => hasBeatmap = true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user