From e044bd8a73f3bfa6e90b39fbaca4eb99505794b1 Mon Sep 17 00:00:00 2001 From: frosch Date: Thu, 14 Nov 2013 18:04:31 +0000 Subject: (svn r25995) -Fix (r25785) [FS#5801]: [NoGo] GS failed to rename towns. (Zydeco) --- src/script/api/script_town.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/api/script_town.cpp') 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); } -- cgit v1.2.3-54-g00ecf