1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Merge pull request #18815 from peppy/remove-room-null-check-change-state

Remove room null assertion in `TestMultiplayerClient.ChangeState` to avoid assert
This commit is contained in:
Dan Balasescu 2022-06-23 16:55:58 +09:00 committed by GitHub
commit ac91c9de7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,8 +272,6 @@ namespace osu.Game.Tests.Visual.Multiplayer
public override Task ChangeState(MultiplayerUserState newState)
{
Debug.Assert(Room != null);
if (newState == MultiplayerUserState.Idle && LocalUser?.State == MultiplayerUserState.WaitingForLoad)
return Task.CompletedTask;