Possible fix for audio stopping

This commit is contained in:
2015-07-09 21:39:37 +02:00
parent 137eb5384f
commit 675daadd13
+1 -1
View File
@@ -47,7 +47,7 @@ public class GameStateManager {
}
public void setState(State st) {
if (st.ordinal() > 0 && !(currentState instanceof TitleState))
if (st.ordinal() > 0 && ( !(currentState instanceof TitleState) || !(currentState instanceof EndState) ))
currentState.stopAudio();
currentState = gamestates.get(st.ordinal());