diff options
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r-- | src/soundmanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp index c7328b78f..2a3f362b7 100644 --- a/src/soundmanager.cpp +++ b/src/soundmanager.cpp @@ -293,6 +293,9 @@ void SoundManager::fadeInMusic(const std::string &fileName, const int ms) void SoundManager::fadeOutMusic(const int ms) { + if (!mPlayMusic) + return; + mCurrentMusicFile.clear(); if (!mInstalled) @@ -317,6 +320,9 @@ void SoundManager::fadeOutMusic(const int ms) void SoundManager::fadeOutAndPlayMusic(const std::string &fileName, const int ms) { + if (!mPlayMusic) + return; + mNextMusicFile = fileName; fadeOutMusic(ms); } |