aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2004-02-23 02:51:34 +0000
committerEugene Sandulenko2004-02-23 02:51:34 +0000
commitab72dadbff628b725d80a3d63f8bf88ece866a8f (patch)
tree286280bef756920ca2a4982a8141b043aae6cae1
parentf8781408956e8e29a34a9bddd558c3c2b6592b6f (diff)
downloadscummvm-rg350-ab72dadbff628b725d80a3d63f8bf88ece866a8f.tar.gz
scummvm-rg350-ab72dadbff628b725d80a3d63f8bf88ece866a8f.tar.bz2
scummvm-rg350-ab72dadbff628b725d80a3d63f8bf88ece866a8f.zip
Fix o6_readFile. Now it works
svn-id: r13002
-rw-r--r--scumm/script_v6he.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scumm/script_v6he.cpp b/scumm/script_v6he.cpp
index 92c117c09f..849e5dedf5 100644
--- a/scumm/script_v6he.cpp
+++ b/scumm/script_v6he.cpp
@@ -1050,7 +1050,8 @@ int ScummEngine_v6he::readFileToArray(int slot, int32 size) {
writeVar(0, 0);
defineArray(0, 3, 0, size);
byte *ptr = getResourceAddress(rtString, readVar(0));
- _hFileTable[slot].read(ptr, size);
+ _hFileTable[slot].read(ptr + 6, size);
+
return readVar(0);
}