Commit 19e98be
committed
fix: fix custom instrument data lookup using wrong index
Custom instruments start at `song.header.default_instruments` (currently 16), so when looking up custom instrument data, the default instrument count must be subtracted from the note's instrument ID.1 parent 817ee6d commit 19e98be
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
0 commit comments