summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
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
}