diff options
-rw-r--r-- | engines/director/score.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index 12928ddd8b..fe2241d65a 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -897,13 +897,13 @@ void Score::loadLabels(Common::SeekableSubReadStreamEndian &stream) { } _labels = new Common::SortedArray<Label *>(compareLabels); - uint16 count = stream.readUint16(); + uint16 count = stream.readUint16() + 1; uint32 offset = count * 4 + 2; uint16 frame = stream.readUint16(); uint32 stringPos = stream.readUint16() + offset; - for (uint16 i = 0; i < count; i++) { + for (uint16 i = 1; i < count; i++) { uint16 nextFrame = stream.readUint16(); uint32 nextStringPos = stream.readUint16() + offset; uint32 streamPos = stream.pos(); |