diff options
Diffstat (limited to 'src/script/api/script_company.cpp')
-rw-r--r-- | src/script/api/script_company.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_company.cpp b/src/script/api/script_company.cpp index 99fe34376..2f06fd69d 100644 --- a/src/script/api/script_company.cpp +++ b/src/script/api/script_company.cpp @@ -43,7 +43,7 @@ CCountedPtr<Text> counter(name); EnforcePrecondition(false, name != NULL); - const char *text = name->GetEncodedText(); + const char *text = name->GetDecodedText(); EnforcePreconditionEncodedText(false, text); EnforcePreconditionCustomError(false, ::Utf8StringLength(text) < MAX_LENGTH_COMPANY_NAME_CHARS, ScriptError::ERR_PRECONDITION_STRING_TOO_LONG); @@ -64,7 +64,7 @@ CCountedPtr<Text> counter(name); EnforcePrecondition(false, name != NULL); - const char *text = name->GetEncodedText(); + const char *text = name->GetDecodedText(); EnforcePreconditionEncodedText(false, text); EnforcePreconditionCustomError(false, ::Utf8StringLength(text) < MAX_LENGTH_PRESIDENT_NAME_CHARS, ScriptError::ERR_PRECONDITION_STRING_TOO_LONG); |