aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);