diff options
author | rubidium <rubidium@openttd.org> | 2013-06-27 20:07:09 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-06-27 20:07:09 +0000 |
commit | 868001a1e0f145b29af154da09a939c37f0f5a51 (patch) | |
tree | 40ba7daa3331a883fde244e71ee8d59c15c29e02 /src/script | |
parent | 19eca468fcfbd8f15cd61cfd54a6971c0cbd3039 (diff) | |
download | openttd-868001a1e0f145b29af154da09a939c37f0f5a51.tar.xz |
(svn r25489) -Fix (r25488): we want to have the begin, not the end of the decoded text as string to pass along
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_text.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |