diff --git a/Mirror/Runtime/NetworkManager.cs b/Mirror/Runtime/NetworkManager.cs index aa7936bc2..6b0fe477a 100644 --- a/Mirror/Runtime/NetworkManager.cs +++ b/Mirror/Runtime/NetworkManager.cs @@ -145,7 +145,7 @@ public virtual void OnApplicationQuit() // virtual so that inheriting classes' OnValidate() can call base.OnValidate() too public virtual void OnValidate() { - maxConnections = Mathf.Clamp(maxConnections, 1, 32000); // [1, 32000] + maxConnections = Mathf.Max(maxConnections, 0); // always >= 0 if (playerPrefab != null && playerPrefab.GetComponent() == null) {