Skip to content

Commit

Permalink
fix: song loop start tick being written to file as byte instead of short
Browse files Browse the repository at this point in the history
Fixes #11
  • Loading branch information
Bentroen committed Dec 1, 2024
1 parent 0a4636e commit a2487dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nbs/export/toArrayBuffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function write(song: Song): BufferWriter {
if (song.version >= 4) {
writer.writeByte(+song.loop.enabled); // Write loop status
writer.writeByte(song.loop.totalLoops); // Write maximum loop count
writer.writeByte(song.loop.startTick); // Write loop start tick
writer.writeShort(song.loop.startTick); // Write loop start tick
}

writer.writeByte(0); // Write end of header
Expand Down

0 comments on commit a2487dd

Please sign in to comment.