diff --git a/Assets/Mirror/Tests/Runtime/ClientSceneTests_LocalPlayer.cs b/Assets/Mirror/Tests/Runtime/ClientSceneTests_LocalPlayer.cs index 000997824..91e306f92 100644 --- a/Assets/Mirror/Tests/Runtime/ClientSceneTests_LocalPlayer.cs +++ b/Assets/Mirror/Tests/Runtime/ClientSceneTests_LocalPlayer.cs @@ -60,10 +60,7 @@ public IEnumerator LocalPlayerIsSetToNullAfterDestroyMessage() Assert.That(NetworkClient.localPlayer, !Is.Null); // OnObjectDestroy, wait one frame, localPlayer should be cleared - NetworkClient.OnObjectDestroy(new ObjectDestroyMessage - { - netId = identity.netId - }); + NetworkClient.OnObjectDestroy(new ObjectDestroyMessage{netId = identity.netId}); yield return null; Assert.IsTrue(NetworkClient.localPlayer is null, "local player should be set to c# null"); }