Crash fix
This commit is contained in:
@@ -93,7 +93,7 @@ public class Pathfinder{
|
|||||||
* This only occurs for active teams.*/
|
* This only occurs for active teams.*/
|
||||||
private void update(Tile tile, Team team){
|
private void update(Tile tile, Team team){
|
||||||
//make sure team exists
|
//make sure team exists
|
||||||
if(paths[team.ordinal()] != null){
|
if(paths[team.ordinal()] != null && paths[team.ordinal()].weights != null){
|
||||||
PathData path = paths[team.ordinal()];
|
PathData path = paths[team.ordinal()];
|
||||||
|
|
||||||
//impassable tiles have a weight of float.max
|
//impassable tiles have a weight of float.max
|
||||||
|
|||||||
Reference in New Issue
Block a user