[Scummvm-git-logs] scummvm master -> 445761dd6979a5e873113c28b79e1e74c6e50f37
athrxx
noreply at scummvm.org
Fri Feb 2 02:34:44 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
445761dd69 SCUMM: (INDY3/MAC) - fix invalid mem access
Commit: 445761dd6979a5e873113c28b79e1e74c6e50f37
https://github.com/scummvm/scummvm/commit/445761dd6979a5e873113c28b79e1e74c6e50f37
Author: athrxx (athrxx at scummvm.org)
Date: 2024-02-02T03:31:28+01:00
Commit Message:
SCUMM: (INDY3/MAC) - fix invalid mem access
Changed paths:
engines/scumm/players/player_mac_indy3.cpp
diff --git a/engines/scumm/players/player_mac_indy3.cpp b/engines/scumm/players/player_mac_indy3.cpp
index a0bc15b0983..62a0b857fe6 100644
--- a/engines/scumm/players/player_mac_indy3.cpp
+++ b/engines/scumm/players/player_mac_indy3.cpp
@@ -457,6 +457,7 @@ int AudioStream_I3M::readBuffer(int16 *buffer, const int numSamples) {
if (_buffers[ii].pos >= _buffers[ii].end) {
uint32 refreshSize = MIN<uint32>(_vblCountDown * _frameSize, _buffers[ii].size);
_buffers[ii].pos -= refreshSize;
+ refreshSize -= (incr - 1);
generateData(_buffers[ii].pos, refreshSize, stype[ii], _isStereo);
}
}
More information about the Scummvm-git-logs
mailing list