From fb122a9e2063a381376e3e53e1782ddb6ae26f88 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 26 Dec 2019 17:04:02 +0100 Subject: DIRECTOR: Fix index type --- engines/director/score.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/director/score.cpp b/engines/director/score.cpp index f74c636b7c..9da17d3590 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -911,7 +911,7 @@ void Score::loadLabels(Common::SeekableSubReadStreamEndian &stream) { stream.seek(stringPos); Common::String label; - for (uint16 j = stringPos; j < nextStringPos; j++) { + for (uint32 j = stringPos; j < nextStringPos; j++) { label += stream.readByte(); } -- cgit v1.2.3