diff options
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index 6d1a2ab..f3faa01 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -287,7 +287,7 @@ public abstract class Board implements Disposable Iterator<Pawn> pawns = t.iterator(); while(pawns.hasNext()) { Pawn p = pawns.next(); - if ((p != null) && p.canMove() && !pawn.isEnemy(p)) + if (!pawn.isEnemy(p) && p.canMove()) assists.add(p); } } |