From d6a93275f94a87c8f753804d853bc19d1d0271d7 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 3 Mar 2020 23:22:49 +0100 Subject: [PATCH] NetworkIdentity.RebuildObservers: result renamed to rebuildOverwritten because that's what it's for --- Assets/Mirror/Runtime/NetworkIdentity.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkIdentity.cs b/Assets/Mirror/Runtime/NetworkIdentity.cs index 4628a7d24..d49377e89 100644 --- a/Assets/Mirror/Runtime/NetworkIdentity.cs +++ b/Assets/Mirror/Runtime/NetworkIdentity.cs @@ -1002,7 +1002,7 @@ public void RebuildObservers(bool initialize) bool changed = false; // call OnRebuildObservers function in all components - bool result = GetNewObservers(newObservers, initialize); + bool rebuildOverwritten = GetNewObservers(newObservers, initialize); // if player connection: ensure player always see himself no matter what. // -> fixes https://github.com/vis2k/Mirror/issues/692 where a @@ -1015,7 +1015,7 @@ public void RebuildObservers(bool initialize) // if no component implemented OnRebuildObservers, then add all // connections. - if (!result) + if (!rebuildOverwritten) { if (initialize) {