Crash fix

This commit is contained in:
Anuken 2019-01-07 10:37:58 -05:00
parent 415252a5b2
commit 568e55e373

View File

@ -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