diff --git a/Assets/Mirror/Runtime/NetworkConnection.cs b/Assets/Mirror/Runtime/NetworkConnection.cs index 2d6635422..bce7453dd 100644 --- a/Assets/Mirror/Runtime/NetworkConnection.cs +++ b/Assets/Mirror/Runtime/NetworkConnection.cs @@ -30,7 +30,7 @@ public class NetworkConnection : IDisposable /// Transport layers connections begin at one. So on a client with a single connection to a server, the connectionId of that connection will be one. In NetworkServer, the connectionId of the local connection is zero. /// Clients do not know their connectionId on the server, and do not know the connectionId of other clients on the server. /// - public readonly int connectionId = -1; + public readonly int connectionId; /// /// Flag that indicates the client has been authenticated. @@ -117,7 +117,6 @@ internal set internal NetworkConnection(string networkAddress) { address = networkAddress; - connectionId = 0; } ///