Unordered damaged building indices

This commit is contained in:
Anuken
2021-08-01 20:35:10 -04:00
parent d9a92dc10e
commit 41964cd130

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 damagedTiles[team.id] = new Seq<>(); return damagedTiles[team.id] = new Seq<>(false);
} }
return damagedTiles[team.id]; return damagedTiles[team.id];