aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2004-09-04 09:17:38 +0000
committerTravis Howell2004-09-04 09:17:38 +0000
commit868ec03962aa42eb01ea01e861f16c5b9c74cb78 (patch)
tree18b71c78fc70d944478df675818756bdcea395bc /scumm
parente6b2535ff97c511d4e31a52744239742bbee52e6 (diff)
downloadscummvm-rg350-868ec03962aa42eb01ea01e861f16c5b9c74cb78.tar.gz
scummvm-rg350-868ec03962aa42eb01ea01e861f16c5b9c74cb78.tar.bz2
scummvm-rg350-868ec03962aa42eb01ea01e861f16c5b9c74cb78.zip
Ooops
svn-id: r14885
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);