aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/script_v72he.cpp9
-rw-r--r--scumm/script_v7he.cpp9
2 files changed, 10 insertions, 8 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 781df21ce7..4d713da78a 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -2371,11 +2371,12 @@ void ScummEngine_v72he::o72_unknownEC() {
void ScummEngine_v72he::o72_unknownEF() {
int dst, size;
- int b = pop();
- int a = pop();
+
+ int len = pop();
+ int srcOffs = pop();
int src = pop();
- size = b - a + 2;
+ size = len - srcOffs + 2;
writeVar(0, 0);
defineArray(0, kStringArray, 0, 0, 0, size);
@@ -2383,7 +2384,7 @@ void ScummEngine_v72he::o72_unknownEF() {
dst = readVar(0);
- arrrays_unk2(dst, src, a, b);
+ arrrays_unk2(dst, src, srcOffs, len);
push(dst);
debug(1,"stub o72_unknownEF");
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index 9e12984ce8..a3dbc683f9 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -815,11 +815,12 @@ void ScummEngine_v70he::o70_stringLen() {
void ScummEngine_v70he::o70_unknownEF() {
int dst, size;
- int b = pop();
- int a = pop();
+
+ int len = pop();
+ int srcOffs = pop();
int src = pop();
- size = b - a + 2;
+ size = len - srcOffs + 2;
writeVar(0, 0);
defineArray(0, kStringArray, 0, size);
@@ -827,7 +828,7 @@ void ScummEngine_v70he::o70_unknownEF() {
dst = readVar(0);
- arrrays_unk2(dst, src, a, b);
+ arrrays_unk2(dst, src, srcOffs, len);
push(dst);
debug(1,"stub o70_unknownEF");