Commit 696c4141 authored by edo9300's avatar edo9300

Fixed crash when there's no bgm

parent dcd210ae
......@@ -1151,7 +1151,7 @@ void Game::PlayMusic(char* song, bool loop) {
}
}
void Game::PlayBGM() {
if(chkEnableMusic->isChecked()) {
if(chkEnableMusic->isChecked() && BGMList.size() > 0) {
static bool is_playing = false;
static char strBuffer[1024];
if(is_playing && !engineMusic->isCurrentlyPlaying(strBuffer))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment