diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/states/StateEscape.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateEscape.java b/core/src/ch/asynk/tankontank/game/states/StateEscape.java index 4a6cd13..98bedd9 100644 --- a/core/src/ch/asynk/tankontank/game/states/StateEscape.java +++ b/core/src/ch/asynk/tankontank/game/states/StateEscape.java @@ -61,7 +61,8 @@ public class StateEscape extends StateCommon map.possiblePaths.setExit(exitZone.orientation); unit.hideMoveable(); - map.hidePath(to); + if (to != null) + map.hidePath(to); map.hidePossibleMoves(); map.unselectHex(hex); |