SCUMM: (MI1/Mac) - fix invalid mem access

This commit is contained in:
athrxx 2024-06-15 15:18:52 +02:00
parent 9e8a17e736
commit 6fb06a0bbc

View File

@ -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;