aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v72he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index d970e9143e..bd04832fa6 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -1097,7 +1097,7 @@ void ScummEngine_v72he::o72_openFile() {
byte filename[100];
mode = pop();
- copyScriptString(filename);
+ copyScriptString(filename, true);
debug(1,"File %s", filename);
for (r = strlen((char*)filename); r != 0; r--) {
@@ -1369,7 +1369,7 @@ void ScummEngine_v72he::o72_unknownED() {
}
writeVar(0, array);
- while (len <= pos) {
+ while (pos <= len) {
letter = readArray(0, 0, pos);
if (letter)
result += getCharsetOffset(letter);