From 0f3da1e779905a5c10fdeca62d7f2cea6b622e80 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Wed, 30 Mar 2016 08:07:35 +0200 Subject: StateReplay: clear order when finished --- core/src/ch/asynk/rustanddust/game/states/StateReplay.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java index 38cf7574..fff29e85 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(); -- cgit v1.2.3