aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-18 04:25:57 +0000
committerMartin Kiewitz2010-07-18 04:25:57 +0000
commit525794927ed57fd18d3e713a5869f8fcde5ae2a9 (patch)
tree1b9ff37ea6191a35a0ab5a0306cf0d255f1e69dd /engines/sci/engine
parent88b2bec07239b2babc7041b1361873fd331ad838 (diff)
downloadscummvm-rg350-525794927ed57fd18d3e713a5869f8fcde5ae2a9.tar.gz
scummvm-rg350-525794927ed57fd18d3e713a5869f8fcde5ae2a9.tar.bz2
scummvm-rg350-525794927ed57fd18d3e713a5869f8fcde5ae2a9.zip
SCI: fix regression of r50896, behaviour of kFileIO(readString) is supposed to return the string instead of the size, fixes signature mismatch in hoyle 3
svn-id: r50977
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index dd9241a375..2cd2c147bd 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -817,7 +817,7 @@ reg_t kFileIOReadString(EngineState *s, int argc, reg_t *argv) {
fgets_wrapper(s, buf, size, handle);
s->_segMan->memcpy(argv[0], (const byte*)buf, size);
delete[] buf;
- return argv[1];
+ return argv[0];
}
reg_t kFileIOWriteString(EngineState *s, int argc, reg_t *argv) {