1
0
Fork 0

Fix: Pass townnameparts as parameter when testing townname based companyname.

Length of returned string could vary and pass/fail the length check with a different
string than the final selection.
pull/11685/head
Peter Nelson 2024-01-04 21:40:16 +00:00
parent 7482f71692
commit 95e2ab6922
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
1 changed files with 1 additions and 0 deletions

View File

@ -374,6 +374,7 @@ verify_name:;
if (cc->name_1 == str && cc->name_2 == strp) goto bad_town_name;
}
SetDParam(0, strp);
name = GetString(str);
if (Utf8StringLength(name) >= MAX_LENGTH_COMPANY_NAME_CHARS) goto bad_town_name;