summaryrefslogtreecommitdiff
path: root/src/script/api/script_town.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-11-14 18:04:31 +0000
committerfrosch <frosch@openttd.org>2013-11-14 18:04:31 +0000
commite044bd8a73f3bfa6e90b39fbaca4eb99505794b1 (patch)
treeddd62a70a92cecfb2cdc5c49d62a6f65595050e1 /src/script/api/script_town.cpp
parent37633d5da19381b205d9aeeaaee5fabcc38eca4e (diff)
downloadopenttd-e044bd8a73f3bfa6e90b39fbaca4eb99505794b1.tar.xz
(svn r25995) -Fix (r25785) [FS#5801]: [NoGo] GS failed to rename towns. (Zydeco)
Diffstat (limited to 'src/script/api/script_town.cpp')
-rw-r--r--src/script/api/script_town.cpp2
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);
}