Fix weird access to room via Client

This commit is contained in:
Dean Herbert 2021-07-30 17:58:50 +09:00
parent 035dfd071f
commit 867426441e

View File

@ -99,7 +99,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
break; break;
} }
bool enableButton = Client.Room?.State == MultiplayerRoomState.Open && !operationInProgress.Value; bool enableButton = Room?.State == MultiplayerRoomState.Open && !operationInProgress.Value;
// When the local user is the host and spectating the match, the "start match" state should be enabled if any users are ready. // When the local user is the host and spectating the match, the "start match" state should be enabled if any users are ready.
if (localUser?.State == MultiplayerUserState.Spectating) if (localUser?.State == MultiplayerUserState.Spectating)