Properly fix #177.

Previous fix (#186) threw NPE upon failing a song.  Thanks to #155.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2016-10-13 17:51:51 -04:00
parent 3b847d088d
commit 79bfa1c255
2 changed files with 1 additions and 3 deletions

View File

@ -230,6 +230,7 @@ public class Opsu extends StateBasedGame {
} else { } else {
if (id == STATE_GAME) { if (id == STATE_GAME) {
MusicController.pause(); MusicController.pause();
MusicController.setPitch(1.0f);
MusicController.resume(); MusicController.resume();
} else } else
songMenu.resetTrackOnLoad(); songMenu.resetTrackOnLoad();

View File

@ -1384,9 +1384,6 @@ public class Game extends BasicGameState {
// replays // replays
if (isReplay) if (isReplay)
GameMod.loadModState(previousMods); GameMod.loadModState(previousMods);
// reset the playback speed
MusicController.setPitch(1f);
} }
/** /**