summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-20 12:32:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-20 12:32:31 +0100
commit94bd58784ec729688acb5d3a41cc2bffc4ff3b9d (patch)
tree1621d080325665dc6fb626d369ca4dc6d52fd06f /core/src/ch/asynk/tankontank
parenta2bc92fdff3831991360441009792f065d550f61 (diff)
downloadRustAndDust-94bd58784ec729688acb5d3a41cc2bffc4ff3b9d.zip
RustAndDust-94bd58784ec729688acb5d3a41cc2bffc4ff3b9d.tar.gz
StateEscape: take care of null to when exit without moving
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateEscape.java3
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);