1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

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;
}
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.
if (localUser?.State == MultiplayerUserState.Spectating)