diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Tile.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Tile.java b/core/src/ch/asynk/tankontank/engine/Tile.java index 2939ef8..e776473 100644 --- a/core/src/ch/asynk/tankontank/engine/Tile.java +++ b/core/src/ch/asynk/tankontank/engine/Tile.java @@ -90,7 +90,8 @@ public abstract class Tile implements Drawable, Disposable, Iterable<Pawn> public int push(Pawn pawn) { - stack.push(pawn); + if (!stack.contains(pawn)) + stack.push(pawn); return stack.size(); } |