summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Unit.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Unit.java b/core/src/ch/asynk/rustanddust/game/Unit.java
index 836ac93..a55c7b3 100644
--- a/core/src/ch/asynk/rustanddust/game/Unit.java
+++ b/core/src/ch/asynk/rustanddust/game/Unit.java
@@ -296,7 +296,7 @@ public class Unit extends HeadedPawn
public void move()
{
int cost = move.cost;
- if (move.roadMarch) {
+ if ((cost > 0) && move.roadMarch) {
cost -= getRoadMarchBonus();
if (cost < 1) cost = 1;
}