diff --git a/Assets/World Creator Assets/SiegeZoneManager.cs b/Assets/World Creator Assets/SiegeZoneManager.cs index 3d75436e4..775be45c0 100644 --- a/Assets/World Creator Assets/SiegeZoneManager.cs +++ b/Assets/World Creator Assets/SiegeZoneManager.cs @@ -109,7 +109,7 @@ void Update() path.waypoints = new List(); Path.Node node = new Path.Node(); if(targets.Count > 0) node.position = targets[Random.Range(0, targets.Count)].transform.position; - else node.position = players[Random.Range(0, players.Count)].transform.position; + else if(players.Count > 0) node.position = players[Random.Range(0, players.Count)].transform.position; node.children = new List(); path.waypoints.Add(node);