summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateReplay.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
index 38cf757..fff29e8 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
@@ -11,7 +11,9 @@ public class StateReplay extends StateCommon
{
Order o = map.stepReplay();
if (o == null) {
- ctrl.setState(nextState());
+ StateType nextState = nextState();
+ order = null;
+ ctrl.setState(nextState);
} else {
this.order = o;
setup();