Skip to content

Commit

Permalink
fixed no music anywhere bug
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalLumberjack committed Mar 4, 2016
1 parent 2bb3a39 commit 7bc9e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es-core/src/AudioManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ std::shared_ptr<Music> AudioManager::getRandomMusic(std::string themeSoundDirect
if (themeSoundDirectory != "") {
musics = getMusicIn(themeSoundDirectory);
if(musics.empty()) return NULL;
}
} else return NULL;
}
int randomIndex = rand() % musics.size();
std::shared_ptr<Music> bgsound = Music::get(musics.at(randomIndex));
Expand Down

0 comments on commit 7bc9e67

Please sign in to comment.