summaryrefslogtreecommitdiff
path: root/src/soundmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-07 21:01:35 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-07 21:38:22 +0300
commita9732d3ad6115ad7d590e819631dfbd764d13d3e (patch)
treec62984bf527305f275a521e227d785df769c1351 /src/soundmanager.cpp
parentb43854b65e0c8bdbc37db2a0b6e2e86ebf11e7f7 (diff)
downloadmv-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.gz
mv-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.bz2
mv-a9732d3ad6115ad7d590e819631dfbd764d13d3e.tar.xz
mv-a9732d3ad6115ad7d590e819631dfbd764d13d3e.zip
remove useless checks.
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r--src/soundmanager.cpp7
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();
}