summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-30 04:39:13 +0300
committerAndrei Karas <akaras@inbox.ru>2011-03-30 04:39:13 +0300
commitd629f56517f55d1fd756c4774d9a368d66f615df (patch)
treea3675eb7af6b95bd33a8c9887bda5952a11fced5 /src/sound.cpp
parenta08839164df3ae37d216d810123f17eb968da1d4 (diff)
downloadmv-d629f56517f55d1fd756c4774d9a368d66f615df.tar.gz
mv-d629f56517f55d1fd756c4774d9a368d66f615df.tar.bz2
mv-d629f56517f55d1fd756c4774d9a368d66f615df.tar.xz
mv-d629f56517f55d1fd756c4774d9a368d66f615df.zip
Add background music map ranges.
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index be366b496..e3b1a9bcc 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -214,7 +214,7 @@ void Sound::playMusic(const std::string &filename)
haltMusic();
- if ((mMusic = loadMusic(filename)))
+ if (!filename.empty() && (mMusic = loadMusic(filename)))
Mix_PlayMusic(mMusic, -1); // Loop forever
}