summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/StateEntry.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/StateEntry.java b/core/src/ch/asynk/tankontank/game/states/StateEntry.java
index 21dc3f5..f836b53 100644
--- a/core/src/ch/asynk/tankontank/game/states/StateEntry.java
+++ b/core/src/ch/asynk/tankontank/game/states/StateEntry.java
@@ -17,6 +17,8 @@ public class StateEntry extends StateCommon
@Override
public void enter(boolean fromSelect)
{
+ if (selectedHex != null)
+ map.unselectHex(selectedHex);
activeUnit = ctrl.hud.playerInfo.getDockUnit();
entryPoint = ctrl.battle.getEntryPoint(activeUnit);
entryPoint.enable(Hex.AREA, true);