summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateReplay.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
index 013ca65..74cd1b4 100644
--- a/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
+++ b/core/src/ch/asynk/rustanddust/game/states/StateReplay.java
@@ -47,10 +47,10 @@ public class StateReplay extends StateCommon
private StateType nextState()
{
- StateType next = StateType.DONE;
-
if (map.unitsActivableSize() <= 0)
- return next;
+ return StateType.DONE;
+
+ StateType next = null;
switch (order.type) {
case MOVE:
@@ -60,6 +60,7 @@ public class StateReplay extends StateCommon
next = StateType.BREAK;
break;
default:
+ next = StateType.DONE;
break;
}