summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-09-23 19:27:15 +0000
committerrubidium <rubidium@openttd.org>2011-09-23 19:27:15 +0000
commita6f9488ae4285b7904755d0913a6134a95d43c28 (patch)
tree3f00471a1ed4d9d70b58dad9be7351cedbc454f9 /src/company_cmd.cpp
parent514fa060a21f58298cb7fda01b925d865ecce094 (diff)
downloadopenttd-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.cpp2
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:;