From f2a1ff3f7842757d369db23652b39ed3f2a22144 Mon Sep 17 00:00:00 2001 From: athrxx Date: Tue, 8 Nov 2011 20:30:26 +0100 Subject: KYRA: (AdLib Driver) - fix invalid memory write issue --- engines/kyra/sound_adlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/kyra/sound_adlib.cpp b/engines/kyra/sound_adlib.cpp index c31cf809ee..9e47367138 100644 --- a/engines/kyra/sound_adlib.cpp +++ b/engines/kyra/sound_adlib.cpp @@ -524,7 +524,7 @@ void AdLibDriver::setSoundData(uint8 *data) { if (_soundData) { delete[] _soundData; - _soundData = 0; + _soundData = _sfxPointer = 0; } _soundData = data; -- cgit v1.2.3