shithub: cstory

Download patch

ref: bae879e3b592c89e6dd5f84fe8bd904e409786ed
parent: 4e322f25c4760774c122c4e7b1662a64d58d5d2d
author: Gabriel Ravier <gabravier@gmail.com>
date: Tue Nov 5 12:27:04 EST 2019

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

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- 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