NetworkIdentity.OnStartClient: isClient is set to true without checking if it's false

This commit is contained in:
vis2k 2018-06-10 15:07:42 +02:00
parent 3fe7e56ff5
commit d976add1f8

View File

@ -342,10 +342,7 @@ internal void OnStartServer(bool allowNonZeroNetId)
internal void OnStartClient() internal void OnStartClient()
{ {
if (!m_IsClient) m_IsClient = true;
{
m_IsClient = true;
}
CacheBehaviours(); CacheBehaviours();
if (LogFilter.logDev) { Debug.Log("OnStartClient " + gameObject + " GUID:" + netId + " localPlayerAuthority:" + localPlayerAuthority); } if (LogFilter.logDev) { Debug.Log("OnStartClient " + gameObject + " GUID:" + netId + " localPlayerAuthority:" + localPlayerAuthority); }