From 868001a1e0f145b29af154da09a939c37f0f5a51 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 27 Jun 2013 20:07:09 +0000 Subject: (svn r25489) -Fix (r25488): we want to have the begin, not the end of the decoded text as string to pass along --- src/script/api/script_text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/script/api') diff --git a/src/script/api/script_text.cpp b/src/script/api/script_text.cpp index 2339ce5d6..577dd813e 100644 --- a/src/script/api/script_text.cpp +++ b/src/script/api/script_text.cpp @@ -202,5 +202,6 @@ const char *Text::GetDecodedText() static char buf[1024]; ::SetDParamStr(0, encoded_text); - return ::GetString(buf, STR_JUST_RAW_STRING, lastof(buf)); + ::GetString(buf, STR_JUST_RAW_STRING, lastof(buf)); + return buf; } -- cgit v1.2.3-54-g00ecf