diff options
author | rubidium <rubidium@openttd.org> | 2008-09-14 20:11:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-14 20:11:34 +0000 |
commit | 244ccddc1bc283aadc1e845f308b144597968446 (patch) | |
tree | 84d300cf22ee35abde7b797af2df679b8f6e0676 /src | |
parent | c70f745de852ad4850cdefd0f44aa4f953fef94d (diff) | |
download | openttd-244ccddc1bc283aadc1e845f308b144597968446.tar.xz |
(svn r14327) -Fix [FS#2251]: if you rename a town before building something and build something near that town your company would be called "<old townname> Transport".
Diffstat (limited to 'src')
-rw-r--r-- | src/players.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/players.cpp b/src/players.cpp index 0b725b24c..c1875270a 100644 --- a/src/players.cpp +++ b/src/players.cpp @@ -337,7 +337,7 @@ static void GenerateCompanyName(Player *p) t = ClosestTownFromTile(tile, (uint)-1); - if (IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST + 1)) { + if (t->name == NULL && IsInsideMM(t->townnametype, SPECSTR_TOWNNAME_START, SPECSTR_TOWNNAME_LAST + 1)) { str = t->townnametype - SPECSTR_TOWNNAME_START + SPECSTR_PLAYERNAME_START; strp = t->townnameparts; |