1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 05:19:55 +08:00

Fix possible null reference

This commit is contained in:
Dan Balasescu
2025-01-08 18:57:22 +09:00
Unverified
parent 9c05837b3a
commit be33addae1
@@ -274,7 +274,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
protected override APIMod[] GetGameplayMods()
{
// Using the room's reported status makes the server authoritative.
return client.LocalUser?.Mods.Concat(SelectedItem.Value!.RequiredMods).ToArray()!;
return client.LocalUser?.Mods != null ? client.LocalUser.Mods.Concat(SelectedItem.Value!.RequiredMods).ToArray() : base.GetGameplayMods();
}
protected override RulesetInfo GetGameplayRuleset()