diff options
author | frosch <frosch@openttd.org> | 2013-11-14 18:04:31 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-11-14 18:04:31 +0000 |
commit | e044bd8a73f3bfa6e90b39fbaca4eb99505794b1 (patch) | |
tree | ddd62a70a92cecfb2cdc5c49d62a6f65595050e1 /src/script | |
parent | 37633d5da19381b205d9aeeaaee5fabcc38eca4e (diff) | |
download | openttd-e044bd8a73f3bfa6e90b39fbaca4eb99505794b1.tar.xz |
(svn r25995) -Fix (r25785) [FS#5801]: [NoGo] GS failed to rename towns. (Zydeco)
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_town.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_town.cpp b/src/script/api/script_town.cpp index 8fd033e9e..4a0b9aefe 100644 --- a/src/script/api/script_town.cpp +++ b/src/script/api/script_town.cpp @@ -45,7 +45,7 @@ const char *text = NULL; if (name != NULL) { - const char *text = name->GetDecodedText(); + text = name->GetDecodedText(); EnforcePreconditionEncodedText(false, text); EnforcePreconditionCustomError(false, ::Utf8StringLength(text) < MAX_LENGTH_TOWN_NAME_CHARS, ScriptError::ERR_PRECONDITION_STRING_TOO_LONG); } |