summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/music.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/music.cpp b/src/music.cpp
index e48b4a8..fe615f4 100644
--- a/src/music.cpp
+++ b/src/music.cpp
@@ -188,7 +188,8 @@ extern "C" u8 after_course_getMusicForZone(u8 realThemeID) {
return realThemeID;
bool usesDrums = (realThemeID >= 200);
- return hijackMusicWithSongName(SongNameList[realThemeID-100], realThemeID, true, usesDrums?4:2, usesDrums?2:1, 0);
+ const char *name = SongNameList[realThemeID - (usesDrums ? 200 : 100)];
+ return hijackMusicWithSongName(name, realThemeID, true, usesDrums?4:2, usesDrums?2:1, 0);
}