diff --git a/src/main/java/edu/rpi/legup/puzzle/starbattle/StarBattleBoard.java b/src/main/java/edu/rpi/legup/puzzle/starbattle/StarBattleBoard.java index ce04f31a6..2c4a20ebc 100644 --- a/src/main/java/edu/rpi/legup/puzzle/starbattle/StarBattleBoard.java +++ b/src/main/java/edu/rpi/legup/puzzle/starbattle/StarBattleBoard.java @@ -73,8 +73,9 @@ public int columnStars(int columnIndex) { int stars = 0; if (columnIndex < size) { for (StarBattleCell c: this.getCol(columnIndex)) { - if (c.getType() == StarBattleCellType.STAR) + if (c.getType() == StarBattleCellType.STAR) { ++stars; + } } } return stars; @@ -84,8 +85,9 @@ public int rowStars(int rowIndex) { int stars = 0; if (rowIndex < size) { for (StarBattleCell c: this.getRow(rowIndex)) { - if (c.getType() == StarBattleCellType.STAR) + if (c.getType() == StarBattleCellType.STAR) { ++stars; + } } } return stars; @@ -97,8 +99,9 @@ public StarBattleBoard copy() { for (int y = 0; y < this.dimension.height; y++) { copy.setCell(x, y, getCell(x, y).copy()); } - if (x < this.regions.size()) + if (x < this.regions.size()) { copy.regions.add(this.getRegion(x).copy()); + } } for (PuzzleElement e : modifiedData) { copy.getPuzzleElement(e).setModifiable(false);