From 6fb06a0bbc17cafadad742605ac8afb3b5ae1434 Mon Sep 17 00:00:00 2001 From: athrxx Date: Sat, 15 Jun 2024 15:18:52 +0200 Subject: [PATCH] SCUMM: (MI1/Mac) - fix invalid mem access --- engines/scumm/players/player_mac_new.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/engines/scumm/players/player_mac_new.cpp b/engines/scumm/players/player_mac_new.cpp index 4d73b346ba6..c7c2fce275c 100644 --- a/engines/scumm/players/player_mac_new.cpp +++ b/engines/scumm/players/player_mac_new.cpp @@ -735,6 +735,7 @@ void MacSndChannel::setupSound(const MacLowLevelPCMDriver::PCMSound *snd) { _res = Common::SharedPtr(buff, Common::ArrayDeleter()); _frameSize = snd->stereo ? 2 : 1; _loopSt = 0; + _data = nullptr; if (snd->loopend - snd->loopst < 2 || snd->loopend < snd->loopst) { _loopSt2 = 0;