diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hex.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java index 328d2df..e86612d 100644 --- a/core/src/ch/asynk/tankontank/game/Hex.java +++ b/core/src/ch/asynk/tankontank/game/Hex.java @@ -57,9 +57,7 @@ public class Hex extends Tile public Unit getUnit() { - // TODO ugly - if (isEmpty()) return null; - return (Unit) iterator().next(); + return (Unit) stack.peekFirst(); } @Override |