From 5d25e4a197978938719bb50390e7a9f395e6d3dd Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Tue, 14 Sep 2004 10:46:09 +0000 Subject: Fix array issues. svn-id: r15113 --- scumm/script_v7he.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scumm/script_v7he.cpp') diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp index fc32b24a68..5cbc6fc342 100644 --- a/scumm/script_v7he.cpp +++ b/scumm/script_v7he.cpp @@ -968,12 +968,14 @@ void ScummEngine_v7he::o7_unknownF5() { while (pos < len) { chr = readArray(0, 0, pos); result += getCharsetOffsets(chr); - if (result >= max) - break; + if (result >= max) { + push(pos); + return; + } pos++; } - push(result); + push(len); debug(1,"stub o7_unknownF5 (%d)", result); } -- cgit v1.2.3