Fixed a Bug in MusicExist method of GameStateDuel class when filename parameter was empty (this could lead to a wrong check on which soundtrack has to be played).
This commit is contained in:
@@ -375,6 +375,8 @@ void GameStateDuel::End()
|
||||
//TODO Move This to utils or ResourceManager. Don't we have more generic functions that can do that?
|
||||
bool GameStateDuel::MusicExist(string FileName)
|
||||
{
|
||||
if (FileName.length() < 1) return false; // Fixed a problem when Music filename is empty.
|
||||
|
||||
string musicFilename = WResourceManager::Instance()->musicFile(FileName);
|
||||
if (musicFilename.length() < 1) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user