diff --git a/desktop_version/src/Music.cpp b/desktop_version/src/Music.cpp index 361005c8..f5891f89 100644 --- a/desktop_version/src/Music.cpp +++ b/desktop_version/src/Music.cpp @@ -357,6 +357,11 @@ static enum FadeCode processmusicfade(struct FadeState* state, int* volume) void musicclass::fadeMusicVolumeIn(int ms) { + if (halted()) + { + return; + } + m_doFadeInVol = true; m_doFadeOutVol = false; @@ -374,6 +379,11 @@ void musicclass::fadeMusicVolumeIn(int ms) void musicclass::fadeMusicVolumeOut(const int fadeout_ms) { + if (halted()) + { + return; + } + m_doFadeInVol = false; m_doFadeOutVol = true;