diff options
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r-- | src/soundmanager.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp index 6eca843cd..83f9c0a72 100644 --- a/src/soundmanager.cpp +++ b/src/soundmanager.cpp @@ -415,11 +415,8 @@ void SoundManager::haltMusic() return; Mix_HaltMusic(); - if (mMusic) - { - mMusic->decRef(); - mMusic = nullptr; - } + mMusic->decRef(); + mMusic = nullptr; mCurrentMusicFile.clear(); } |