mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 11:43:22 +08:00
Fix possible null reference
This commit is contained in:
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()
|
||||
|
Loading…
Reference in New Issue
Block a user