summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Ctrl.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java
index 09822b4..8b0fa93 100644
--- a/core/src/ch/asynk/tankontank/game/Ctrl.java
+++ b/core/src/ch/asynk/tankontank/game/Ctrl.java
@@ -225,9 +225,11 @@ public class Ctrl implements Disposable
break;
}
- this.state.enter(stateType);
-
+ StateType tmp = stateType;
stateType = nextState;
+
+ this.state.enter(tmp);
+
}
public void touchDown(float hx, float hy, float mx, float my)