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