mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 18:32:35 +01:00
(svn r25488) -Fix [FS#5613]: do not send encoded texts to names, but decode them into a plain C string and then pass them on
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
CCountedPtr<Text> counter(text);
|
||||
|
||||
EnforcePrecondition(false, text != NULL);
|
||||
const char *encoded_text = text->GetEncodedText();
|
||||
const char *encoded_text = text->GetDecodedText();
|
||||
EnforcePreconditionEncodedText(false, encoded_text);
|
||||
EnforcePrecondition(false, IsValidTown(town_id));
|
||||
EnforcePreconditionCustomError(false, ::Utf8StringLength(encoded_text) < MAX_LENGTH_TOWN_NAME_CHARS, ScriptError::ERR_PRECONDITION_STRING_TOO_LONG);
|
||||
|
||||
Reference in New Issue
Block a user