diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-30 04:39:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-30 04:39:13 +0300 |
commit | d629f56517f55d1fd756c4774d9a368d66f615df (patch) | |
tree | a3675eb7af6b95bd33a8c9887bda5952a11fced5 /src/sound.cpp | |
parent | a08839164df3ae37d216d810123f17eb968da1d4 (diff) | |
download | manaverse-d629f56517f55d1fd756c4774d9a368d66f615df.tar.gz manaverse-d629f56517f55d1fd756c4774d9a368d66f615df.tar.bz2 manaverse-d629f56517f55d1fd756c4774d9a368d66f615df.tar.xz manaverse-d629f56517f55d1fd756c4774d9a368d66f615df.zip |
Add background music map ranges.
Diffstat (limited to 'src/sound.cpp')
-rw-r--r-- | src/sound.cpp | 2 |
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 } |