From b981a7ee3ab02d165fe8e50e13e6df416a1d6319 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Tue, 24 Apr 2018 00:33:29 +0100 Subject: add support for multi-channel custom music as ids 200+ --- src/music.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3