diff options
author | rubidium <rubidium@openttd.org> | 2011-09-23 19:27:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-09-23 19:27:15 +0000 |
commit | a6f9488ae4285b7904755d0913a6134a95d43c28 (patch) | |
tree | 3f00471a1ed4d9d70b58dad9be7351cedbc454f9 /src/company_cmd.cpp | |
parent | 514fa060a21f58298cb7fda01b925d865ecce094 (diff) | |
download | openttd-a6f9488ae4285b7904755d0913a6134a95d43c28.tar.xz |
(svn r22957) -Codechange: SPECSTR_PLAYERNAME is actually the company name, which is derived from the town name + ' Transport'. So make sure the last constant is in sync with the town name table
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 46c310e82..f5bdd473d 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -349,7 +349,7 @@ static void GenerateCompanyName(Company *c) StringID str; uint32 strp; if (t->name == NULL && IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST + 1)) { - str = t->townnametype - SPECSTR_TOWNNAME_START + SPECSTR_PLAYERNAME_START; + str = t->townnametype - SPECSTR_TOWNNAME_START + SPECSTR_COMPANY_NAME_START; strp = t->townnameparts; verify_name:; |