From ca94fca82f7f4ec173c0ec100c951b06a258d012 Mon Sep 17 00:00:00 2001 From: MrGadget1024 Date: Thu, 7 Jan 2021 09:22:24 -0500 Subject: [PATCH] fixed NetworkIdentityTest - removed unused var --- Assets/Mirror/Tests/Editor/NetworkIdentityTests.cs | 1 - Assets/Mirror/Tests/Editor/NetworkWriterTest.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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;