diff options
author | Eugene Sandulenko | 2016-11-08 17:20:06 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-11-08 17:20:06 +0100 |
commit | 0dc532e8781cb7009fdf13298425bf6538d55480 (patch) | |
tree | f8beda584df8c3e73528c8ba30d2eeff1f1d6564 /engines | |
parent | b0f30906df2e96342f976f09a376b5b5022e37d5 (diff) | |
download | scummvm-rg350-0dc532e8781cb7009fdf13298425bf6538d55480.tar.gz scummvm-rg350-0dc532e8781cb7009fdf13298425bf6538d55480.tar.bz2 scummvm-rg350-0dc532e8781cb7009fdf13298425bf6538d55480.zip |
DIRECTOR: Fix CASt resource parsing
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/score.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 181ed9a80f..a6de557098 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -462,6 +462,10 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 cas //member.regX = 0 // FIXME: HACK //member.regY = 0 // FIXME: HACK + byte *data = (byte *)malloc(size1); + stream.read(data, size1); + free(data); + if (size2) { uint32 entryType = 0; Common::Array<Common::String> castStrings = loadStrings(stream, entryType, false); |