diff options
author | athrxx | 2011-07-03 14:33:38 +0200 |
---|---|---|
committer | athrxx | 2011-07-03 14:40:57 +0200 |
commit | 636a28c0dd1488aba38a7bd34ecd4ddd7dfa282a (patch) | |
tree | b538cc6b5c8bce7edc8814ec5da018f9caad868f /engines/scumm/imuse_digi/dimuse_codecs.cpp | |
parent | 90fa4cf15fe82b36c9374596ab955eea0939fc8f (diff) | |
download | scummvm-rg350-636a28c0dd1488aba38a7bd34ecd4ddd7dfa282a.tar.gz scummvm-rg350-636a28c0dd1488aba38a7bd34ecd4ddd7dfa282a.tar.bz2 scummvm-rg350-636a28c0dd1488aba38a7bd34ecd4ddd7dfa282a.zip |
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)
Diffstat (limited to 'engines/scumm/imuse_digi/dimuse_codecs.cpp')
-rw-r--r-- | engines/scumm/imuse_digi/dimuse_codecs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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() { |