1
0
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:
Dan Balasescu 2025-01-08 18:57:22 +09:00
parent 9c05837b3a
commit be33addae1
No known key found for this signature in database

View File

@ -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()