From 568e55e373c1000eba20735050ec6c27e49ef480 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 7 Jan 2019 10:37:58 -0500 Subject: [PATCH] Crash fix --- core/src/io/anuke/mindustry/ai/Pathfinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/ai/Pathfinder.java b/core/src/io/anuke/mindustry/ai/Pathfinder.java index 39502d2dbd..e7bd728b91 100644 --- a/core/src/io/anuke/mindustry/ai/Pathfinder.java +++ b/core/src/io/anuke/mindustry/ai/Pathfinder.java @@ -93,7 +93,7 @@ public class Pathfinder{ * This only occurs for active teams.*/ private void update(Tile tile, Team team){ //make sure team exists - if(paths[team.ordinal()] != null){ + if(paths[team.ordinal()] != null && paths[team.ordinal()].weights != null){ PathData path = paths[team.ordinal()]; //impassable tiles have a weight of float.max