aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-26 17:15:18 +0100
committerEugene Sandulenko2019-12-26 17:15:18 +0100
commit32c96f63730162867ad0bdf3406a7ce811fea6ef (patch)
treeec68eff2477707d296c0a307b4882cfe88d5fc29 /engines
parentfb122a9e2063a381376e3e53e1782ddb6ae26f88 (diff)
downloadscummvm-rg350-32c96f63730162867ad0bdf3406a7ce811fea6ef.tar.gz
scummvm-rg350-32c96f63730162867ad0bdf3406a7ce811fea6ef.tar.bz2
scummvm-rg350-32c96f63730162867ad0bdf3406a7ce811fea6ef.zip
DIRECTOR: Fix number of labels to read
Diffstat (limited to 'engines')
-rw-r--r--engines/director/score.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp
index 9da17d3590..12928ddd8b 100644
--- a/engines/director/score.cpp
+++ b/engines/director/score.cpp
@@ -897,7 +897,7 @@ void Score::loadLabels(Common::SeekableSubReadStreamEndian &stream) {
}
_labels = new Common::SortedArray<Label *>(compareLabels);
- uint16 count = stream.readUint16() + 1;
+ uint16 count = stream.readUint16();
uint32 offset = count * 4 + 2;
uint16 frame = stream.readUint16();