diff options
author | Eugene Sandulenko | 2004-02-20 03:29:39 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-02-20 03:29:39 +0000 |
commit | 1fe7d0c8902f33ded8fa847c3072d4130af20fd9 (patch) | |
tree | 4d2762875728af4f8d51048d818e8e34caf4f677 /scumm/script_v6he.cpp | |
parent | 76eff7e2218da27ac2e493b468895d63781be88d (diff) | |
download | scummvm-rg350-1fe7d0c8902f33ded8fa847c3072d4130af20fd9.tar.gz scummvm-rg350-1fe7d0c8902f33ded8fa847c3072d4130af20fd9.tar.bz2 scummvm-rg350-1fe7d0c8902f33ded8fa847c3072d4130af20fd9.zip |
oops
svn-id: r12940
Diffstat (limited to 'scumm/script_v6he.cpp')
-rw-r--r-- | scumm/script_v6he.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp index 1edbd09aa4..f8a7d9bd1e 100644 --- a/scumm/script_v6he.cpp +++ b/scumm/script_v6he.cpp @@ -979,8 +979,9 @@ void ScummEngine_v6he::o6_openFile() { else error("o6_openFile(): wrong open file mode"); - if (_hFileTable[l].isOpen() == false) + if (_hFileTable[slot].isOpen() == false) slot = -1; + debug(1, "%d = o6_openFile(\"%s\", %d)", slot, filename + r, mode); } push(slot); @@ -1074,7 +1075,6 @@ void ScummEngine_v6he::o6_readFile() { val = readFileToArray(slot, size); push(val); } - debug(1, "returned %d", val); } void ScummEngine_v6he::writeFileFromArray(int slot, int resID) { |