aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-09-30 22:35:32 +0000
committerPaweł Kołodziejski2002-09-30 22:35:32 +0000
commit347b80100fc6b11206fabc09324c089ae6562076 (patch)
treea99d3bd3b9a3e47d67d59c8745e2e91b90e7baf6
parent5d6498faef168d0b8eeafd1e0e945e220cc450cc (diff)
downloadscummvm-rg350-347b80100fc6b11206fabc09324c089ae6562076.tar.gz
scummvm-rg350-347b80100fc6b11206fabc09324c089ae6562076.tar.bz2
scummvm-rg350-347b80100fc6b11206fabc09324c089ae6562076.zip
fixed loop in imuse
svn-id: r5055
-rw-r--r--scumm/imuse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/imuse.cpp b/scumm/imuse.cpp
index 5eaebba43f..819c8eb89a 100644
--- a/scumm/imuse.cpp
+++ b/scumm/imuse.cpp
@@ -4876,7 +4876,7 @@ void IMuseDigital::handler() {
byte *buf = (byte*)malloc(_channel[l]._mixerSize);
memcpy(buf, _channel[l]._data + _channel[l]._offset, new_size);
if ((new_size != _channel[l]._mixerSize) && (_channel[l]._isLoop == true)) {
- memcpy(buf, _channel[l]._data, _channel[l]._mixerSize - new_size);
+ memcpy(buf + new_size, _channel[l]._data, _channel[l]._mixerSize - new_size);
}
new_mixer = false;