From 4ea26617b8f4e376b600772c38b364e1f7415477 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 3 Jun 2023 15:52:24 -0700 Subject: [PATCH] Initialize currentsong to -1 There's not any ill effects of it being initialized to 0 that I am aware of (because in most cases, it either gets overwritten anyways or there isn't a track playing in the first place), but it shouldn't be 0, because that's Path Complete, so fixing this just in case. --- desktop_version/src/Music.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Music.cpp b/desktop_version/src/Music.cpp index 98da3840..7ed403c3 100644 --- a/desktop_version/src/Music.cpp +++ b/desktop_version/src/Music.cpp @@ -737,7 +737,7 @@ musicclass::musicclass(void) user_music_volume = USER_VOLUME_MAX; user_sound_volume = USER_VOLUME_MAX; - currentsong = 0; + currentsong = -1; nicechange = -1; nicefade = false; quick_fade = true;