mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-14 18:19:11 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user