aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter van Niftrik2009-05-08 22:44:26 +0000
committerWalter van Niftrik2009-05-08 22:44:26 +0000
commit4f4bef88b1eff0bd4aaad704814d52b8e21caed7 (patch)
tree793d8ee573a63dfdcbdbccff87db0413530d2860
parentb0b25acf9619d8dae39fa5df5dbc9c9ae88b876f (diff)
downloadscummvm-rg350-4f4bef88b1eff0bd4aaad704814d52b8e21caed7.tar.gz
scummvm-rg350-4f4bef88b1eff0bd4aaad704814d52b8e21caed7.tar.bz2
scummvm-rg350-4f4bef88b1eff0bd4aaad704814d52b8e21caed7.zip
SCI: Fix return value of GetMessage.
svn-id: r40394
-rw-r--r--engines/sci/engine/kstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp
index 9936f5234e..3a92424b56 100644
--- a/engines/sci/engine/kstring.cpp
+++ b/engines/sci/engine/kstring.cpp
@@ -799,7 +799,7 @@ reg_t kGetMessage(EngineState *s, int funct_nr, int argc, reg_t *argv) {
if (buffer)
state.getText(buffer, 255);
- return make_reg(0, *buffer);
+ return argv[3];
} else {
return NULL_REG;
}