From 90bc18e1bd3d1c99fb0cd24b5a78d720d6505576 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 31 Jul 2021 08:38:03 -0400 Subject: [PATCH] Fixed #5677 --- core/src/mindustry/ai/BlockIndexer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/ai/BlockIndexer.java b/core/src/mindustry/ai/BlockIndexer.java index 6cc184ad38..6c485ae3e6 100644 --- a/core/src/mindustry/ai/BlockIndexer.java +++ b/core/src/mindustry/ai/BlockIndexer.java @@ -181,7 +181,7 @@ public class BlockIndexer{ /** Returns all damaged tiles by team. */ public Seq getDamaged(Team team){ if(damagedTiles[team.id] == null){ - return null; + return damagedTiles[team.id] = new Seq<>(); } return damagedTiles[team.id];