summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-18 21:52:52 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-18 21:52:52 +0100
commite527afa1bfb991b3c85cb1942a7a140373048774 (patch)
treea9b0802991efa9ac7e9af3bace896cf6723b9e71 /core/src/ch/asynk
parenta7e90e154140e931a4ed9abb6222ec1df659e97f (diff)
downloadRustAndDust-e527afa1bfb991b3c85cb1942a7a140373048774.zip
RustAndDust-e527afa1bfb991b3c85cb1942a7a140373048774.tar.gz
Map: setOnBoard first dispose of previous order
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 3f1a552..5384abc 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -390,6 +390,7 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS
public boolean setOnBoard(final Unit unit, Hex to, Orientation entry)
{
+ commands.dispose(unit);
return (process(getMoveCommand(unit, Move.getSet(unit, to, entry))) == 1);
}