diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 7645a669b..fa93f4d84 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1045,7 +1045,8 @@ void Game::changeMap(const std::string &mapPath) newMap->initializeParticleEffects(particleEngine); // Start playing new music file when necessary - const std::string oldMusic = mCurrentMap ? mCurrentMap->getMusicFile() : ""; + const std::string oldMusic = mCurrentMap + ? mCurrentMap->getMusicFile() : ""; const std::string newMusic = newMap ? newMap->getMusicFile() : ""; if (newMusic != oldMusic) { |