mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 11:45:21 +00:00
SCUMM: (MI1/Mac) - fix invalid mem access
This commit is contained in:
parent
9e8a17e736
commit
6fb06a0bbc
@ -735,6 +735,7 @@ void MacSndChannel::setupSound(const MacLowLevelPCMDriver::PCMSound *snd) {
|
||||
_res = Common::SharedPtr<const int8>(buff, Common::ArrayDeleter<const int8>());
|
||||
_frameSize = snd->stereo ? 2 : 1;
|
||||
_loopSt = 0;
|
||||
_data = nullptr;
|
||||
|
||||
if (snd->loopend - snd->loopst < 2 || snd->loopend < snd->loopst) {
|
||||
_loopSt2 = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user