diff --git a/Assets/Mirror/Runtime/NetworkConnection.cs b/Assets/Mirror/Runtime/NetworkConnection.cs index 28805fd6e..deb2c8e45 100644 --- a/Assets/Mirror/Runtime/NetworkConnection.cs +++ b/Assets/Mirror/Runtime/NetworkConnection.cs @@ -108,12 +108,12 @@ protected static bool ValidatePacketSize(ArraySegment segment, int channel public override string ToString() => $"connection({connectionId})"; - internal void AddToObserving(NetworkIdentity identity) + internal void AddToObserving(NetworkIdentity netIdentity) { - observing.Add(identity); + observing.Add(netIdentity); // spawn identity for this conn - NetworkServer.ShowForConnection(identity, this); + NetworkServer.ShowForConnection(netIdentity, this); } internal void RemoveFromObserving(NetworkIdentity identity, bool isDestroyed)