This commit is contained in:
vis2k 2019-04-06 13:33:38 +02:00
parent 9d2682eb2a
commit b202473bcf

View File

@ -887,7 +887,7 @@ static void OnCommandMessage(NetworkConnection conn, CommandMessage msg)
internal static void SpawnObject(GameObject obj) 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."); Debug.LogError("SpawnObject for " + obj + ", NetworkServer is not active. Cannot spawn objects without an active server.");
return; return;