From b202473bcf7c535d9ac946a8d746e660110b0c17 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sat, 6 Apr 2019 13:33:38 +0200 Subject: [PATCH] syntax --- Assets/Mirror/Runtime/NetworkServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index 6a2165e8c..38a0bb360 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -887,7 +887,7 @@ static void OnCommandMessage(NetworkConnection conn, CommandMessage msg) internal static void SpawnObject(GameObject obj) { - if (!NetworkServer.active) + if (!active) { Debug.LogError("SpawnObject for " + obj + ", NetworkServer is not active. Cannot spawn objects without an active server."); return;