aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-11-08 17:20:06 +0100
committerEugene Sandulenko2016-11-08 17:20:06 +0100
commit0dc532e8781cb7009fdf13298425bf6538d55480 (patch)
treef8beda584df8c3e73528c8ba30d2eeff1f1d6564
parentb0f30906df2e96342f976f09a376b5b5022e37d5 (diff)
downloadscummvm-rg350-0dc532e8781cb7009fdf13298425bf6538d55480.tar.gz
scummvm-rg350-0dc532e8781cb7009fdf13298425bf6538d55480.tar.bz2
scummvm-rg350-0dc532e8781cb7009fdf13298425bf6538d55480.zip
DIRECTOR: Fix CASt resource parsing
-rw-r--r--engines/director/score.cpp4
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);