Skip to content

Commit 71e3006

Browse files
committed
fix ins count when saving v5 having no v6 ins
1 parent 7e20bf9 commit 71e3006

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/save_song/save_song.gml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ function save_song() {
9494
cb = 0
9595
ins = ds_list_find_index(cursong.instrument_list, cursong.song_ins[a, b])
9696
if (nbsver < 6 && ins > 15 && ins < 20) has_v6_ins = true
97-
buffer_write_byte(ds_list_find_index(cursong.instrument_list, cursong.song_ins[a, b]))
97+
if (nbsver < 6 && ins >= 20 && !has_v6_ins) ins -= 4
98+
buffer_write_byte(ins)
9899
buffer_write_byte(cursong.song_key[a, b])
99100
if nbsver >= 4 {
100101
buffer_write_byte(cursong.song_vel[a, b])

0 commit comments

Comments
 (0)