diff options
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 } |