Merge pull request #82 from GabrielRavier/correctEnumTypeBeingConvertedToBool

Check "no" against MUS_SILENCE instead of converting it to a bool
This commit is contained in:
Clownacy 2019-11-09 13:54:42 +00:00 committed by GitHub
commit 69ec37c1cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,7 +252,7 @@ MusicID gMusicNo;
void ChangeMusic(MusicID no)
{
if (no && no == gMusicNo)
if (no != MUS_SILENCE && no == gMusicNo)
return;
//Stop and keep track of old song