summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
index 5b7b0f3..7d17c1a 100644
--- a/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
+++ b/core/src/ch/asynk/tankontank/game/battles/BattleHeadToHead.java
@@ -30,12 +30,11 @@ public class BattleHeadToHead extends BattleCommon
if ((ctrl.player.getTurn() < 10) || (ctrl.opponent.getTurn() < 10))
return null;
- Unit unit;
int player = 0;
int opponent = 0;
for (Tile tile : objectives) {
- unit = ((Hex) tile).getUnit();
+ Unit unit = ((Hex) tile).getUnit();
if (unit != null) {
if (ctrl.player.isEnemy(unit))
opponent += 1;