diff --git a/Assets/Mirror/Tests/Editor/NetworkIdentityTests.cs b/Assets/Mirror/Tests/Editor/NetworkIdentityTests.cs index 2ecb27c85..4f5ac7550 100644 --- a/Assets/Mirror/Tests/Editor/NetworkIdentityTests.cs +++ b/Assets/Mirror/Tests/Editor/NetworkIdentityTests.cs @@ -1262,7 +1262,6 @@ public void Reset() identity.isClient = true; // creates .observers and generates a netId identity.OnStartServer(); - uint netId = identity.netId; identity.connectionToClient = new NetworkConnectionToClient(1); identity.connectionToServer = new NetworkConnectionToServer(); identity.observers[43] = new NetworkConnectionToClient(2); diff --git a/Assets/Mirror/Tests/Editor/NetworkWriterTest.cs b/Assets/Mirror/Tests/Editor/NetworkWriterTest.cs index 8ca95b137..2c62b36c2 100644 --- a/Assets/Mirror/Tests/Editor/NetworkWriterTest.cs +++ b/Assets/Mirror/Tests/Editor/NetworkWriterTest.cs @@ -1056,7 +1056,7 @@ public void TestNetworkBehaviour() NetworkIdentity identity = gameObject.AddComponent(); RpcNetworkIdentityBehaviour behaviour = gameObject.AddComponent(); - const ushort netId = 100; + const uint netId = 100; identity.netId = netId; NetworkIdentity.spawned[netId] = identity;