From 636a28c0dd1488aba38a7bd34ecd4ddd7dfa282a Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 3 Jul 2011 14:33:38 +0200 Subject: SCUMM: fix crash in digital iMuse games when using RTL and restarting (static array were not reset to NULL after being freed and therefore didn't get reallocated on restart) --- engines/scumm/imuse_digi/dimuse_codecs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/scumm/imuse_digi/dimuse_codecs.cpp b/engines/scumm/imuse_digi/dimuse_codecs.cpp index 69cd89320c..6edfe0bd33 100644 --- a/engines/scumm/imuse_digi/dimuse_codecs.cpp +++ b/engines/scumm/imuse_digi/dimuse_codecs.cpp @@ -105,7 +105,9 @@ static const byte imxOtherTable[6][64] = { void releaseImcTables() { free(_destImcTable); + _destImcTable = NULL; free(_destImcTable2); + _destImcTable2 = NULL; } void initializeImcTables() { -- cgit v1.2.3