summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 5384abc..f949a39 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -425,11 +425,12 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
public void revertEnter(final Unit unit)
{
- TankOnTank.debug(" revertEnter()"+ unit);
- unit.reset();
+ TankOnTank.debug(" revertEnter() "+ unit);
removePawn(unit);
objectives.revert(this);
ctrl.player.revertUnitEntry(unit);
+ commands.dispose(unit);
+ unit.reset();
}
public boolean engageUnit(final Unit unit, final Unit target)