This commit is contained in:
Anuken
2021-07-31 08:38:03 -04:00
parent 9f6c45f4a0
commit 90bc18e1bd

View File

@@ -181,7 +181,7 @@ public class BlockIndexer{
/** Returns all damaged tiles by team. */ /** Returns all damaged tiles by team. */
public Seq<Building> getDamaged(Team team){ public Seq<Building> getDamaged(Team team){
if(damagedTiles[team.id] == null){ if(damagedTiles[team.id] == null){
return null; return damagedTiles[team.id] = new Seq<>();
} }
return damagedTiles[team.id]; return damagedTiles[team.id];