From d976add1f8b717ebd5650d6b68cb5d3b9858d4c0 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 10 Jun 2018 15:07:42 +0200 Subject: [PATCH] NetworkIdentity.OnStartClient: isClient is set to true without checking if it's false --- Unity-Technologies-networking/Runtime/NetworkIdentity.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Unity-Technologies-networking/Runtime/NetworkIdentity.cs b/Unity-Technologies-networking/Runtime/NetworkIdentity.cs index 552e8ce9a..69e89d85f 100644 --- a/Unity-Technologies-networking/Runtime/NetworkIdentity.cs +++ b/Unity-Technologies-networking/Runtime/NetworkIdentity.cs @@ -342,10 +342,7 @@ internal void OnStartServer(bool allowNonZeroNetId) internal void OnStartClient() { - if (!m_IsClient) - { - m_IsClient = true; - } + m_IsClient = true; CacheBehaviours(); if (LogFilter.logDev) { Debug.Log("OnStartClient " + gameObject + " GUID:" + netId + " localPlayerAuthority:" + localPlayerAuthority); }