aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-08-30 14:26:52 +0000
committerTravis Howell2004-08-30 14:26:52 +0000
commit292846c2f531748d343e33c3cf45dde726ffaf75 (patch)
treeb0af59a1748e37144dc33aef2ee4311e850086f5 /scumm
parent026e3755618b0c74c3c0721ef168da920a1226ba (diff)
downloadscummvm-rg350-292846c2f531748d343e33c3cf45dde726ffaf75.tar.gz
scummvm-rg350-292846c2f531748d343e33c3cf45dde726ffaf75.tar.bz2
scummvm-rg350-292846c2f531748d343e33c3cf45dde726ffaf75.zip
Small correction
svn-id: r14842
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v7he.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index cc43d990ae..0150ab88ab 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -802,11 +802,13 @@ void ScummEngine_v7he::o7_unknownEF() {
size = len - b + 2;
+
defineArray(0, kStringArray, 0, size);
writeArray(0, 0, 0, 0);
array = readVar(0);
+ len2 = len;
if (len == -1) {
len2 = resStrLen(getStringAddress(array2));
len = 0;
@@ -818,11 +820,11 @@ void ScummEngine_v7he::o7_unknownEF() {
offset = 0;
len2 -= len;
len2++;
- while (offset <= len2) {
+ while (offset < len2) {
writeVar(0, array2);
value = readArray(0, 0, offset + len);
writeVar(0, array);
- writeArray(0, 0, len3 + offset, value);
+ writeArray(0, 0, offset + len3, value);
offset++;
}