summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/script/api/script_text.cpp3
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;
}