diff options
Diffstat (limited to 'sound/mods')
-rw-r--r-- | sound/mods/rjp1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mods/rjp1.cpp b/sound/mods/rjp1.cpp index fc1b49e9e9..be376d61a4 100644 --- a/sound/mods/rjp1.cpp +++ b/sound/mods/rjp1.cpp @@ -422,7 +422,7 @@ void Rjp1::setupNote(Rjp1Channel *channel, int16 period) { channel->envelopeMode = 4; channel->data = channel->waveData; channel->pos = READ_BE_UINT16(note + 16); - channel->len = READ_BE_UINT16(note + 18); + channel->len = channel->pos + READ_BE_UINT16(note + 18); channel->setupNewNote = true; } } |