diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | sound/mods/rjp1.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -8,6 +8,7 @@ For a more comprehensive changelog for the latest experimental SVN code, see: General: - Switched to the "fast" DOSBox OPL emulator. + - Fixed a crash in the rjp1 player code affecting the FOTAQ Amiga version. 1.1.2 (????-??-??) Broken Sword 2 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; } } |