Check "no" against MUS_SILENCE instead of converting it to a bool

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2019-11-05 17:27:04 +01:00
parent 4e322f25c4
commit bae879e3b5

View file

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