From 4f4bef88b1eff0bd4aaad704814d52b8e21caed7 Mon Sep 17 00:00:00 2001
From: Walter van Niftrik
Date: Fri, 8 May 2009 22:44:26 +0000
Subject: SCI: Fix return value of GetMessage.

svn-id: r40394
---
 engines/sci/engine/kstring.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'engines/sci/engine')

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;
 	}
-- 
cgit v1.2.3