From 8b151e71cffb391e2e420e9dc48c8d03b4a26719 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 6 Jan 2019 15:47:37 +0100 Subject: [PATCH] NetworkManager.OnValidate: no need to artificially limit max connections --- Mirror/Runtime/NetworkManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {