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