diff --git a/Assets/Mirror/Core/NetworkIdentity.cs b/Assets/Mirror/Core/NetworkIdentity.cs
index 1426fec15..7de3dd766 100644
--- a/Assets/Mirror/Core/NetworkIdentity.cs
+++ b/Assets/Mirror/Core/NetworkIdentity.cs
@@ -93,6 +93,9 @@ public sealed class NetworkIdentity : MonoBehaviour
// for example: main player & pets are owned. monsters & npcs aren't.
public bool isOwned { get; internal set; }
+ // public so NetworkManager can reset it from StopClient.
+ public bool clientStarted;
+
/// The set of network connections (players) that can see this object.
public readonly Dictionary observers =
new Dictionary();
@@ -707,7 +710,6 @@ internal void OnStopServer()
}
}
- bool clientStarted;
internal void OnStartClient()
{
if (clientStarted) return;