ref: 69ec37c1cc8746450997fa7cb06c5027a28378fb
parent: 4e322f25c4760774c122c4e7b1662a64d58d5d2d
parent: 401a8f0d4213e6464f1347b1053c669e054d3cc4
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Nov 9 08:54:42 EST 2019
Merge pull request #82 from GabrielRavier/correctEnumTypeBeingConvertedToBool Check "no" against MUS_SILENCE instead of converting it to a bool
--- a/src/Stage.cpp
+++ b/src/Stage.cpp
@@ -252,7 +252,7 @@
void ChangeMusic(MusicID no)
{
- if (no && no == gMusicNo)
+ if (no != MUS_SILENCE && no == gMusicNo)
return;
//Stop and keep track of old song