Skip to content

Commit

Permalink
Fix SiegeZone bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rudderbucky committed Jun 4, 2020
1 parent ff85165 commit 4bf620e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/World Creator Assets/SiegeZoneManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void Update()
path.waypoints = new List<Path.Node>();
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<int>();
path.waypoints.Add(node);

Expand Down

0 comments on commit 4bf620e

Please sign in to comment.