# HG changeset patch # User frosch # Date 2013-11-14 18:04:31 # Node ID 77332499a14e26552259d54b97250d89909b64ef # Parent c7e920a92fe295ac1f46861e7cedad8fd15050b8 (svn r25995) -Fix (r25785) [FS#5801]: [NoGo] GS failed to rename towns. (Zydeco) diff --git a/src/script/api/script_town.cpp b/src/script/api/script_town.cpp --- 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); }