diff options
author | Eugene Sandulenko | 2019-12-26 17:15:18 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-26 17:15:18 +0100 |
commit | 32c96f63730162867ad0bdf3406a7ce811fea6ef (patch) | |
tree | ec68eff2477707d296c0a307b4882cfe88d5fc29 | |
parent | fb122a9e2063a381376e3e53e1782ddb6ae26f88 (diff) | |
download | scummvm-rg350-32c96f63730162867ad0bdf3406a7ce811fea6ef.tar.gz scummvm-rg350-32c96f63730162867ad0bdf3406a7ce811fea6ef.tar.bz2 scummvm-rg350-32c96f63730162867ad0bdf3406a7ce811fea6ef.zip |
DIRECTOR: Fix number of labels to read
-rw-r--r-- | engines/director/score.cpp | 2 |
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(); |