diff options
author | smatz <smatz@openttd.org> | 2008-09-15 08:37:40 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-09-15 08:37:40 +0000 |
commit | 6be25eabb36b2d004554ef60f007cad909cb50d8 (patch) | |
tree | 2a482c2ace03e76ecfc49b201f2db39535d959a5 /src | |
parent | c496fe4d1af97e6e7c3dd68511e2c49dfe850585 (diff) | |
download | openttd-6be25eabb36b2d004554ef60f007cad909cb50d8.tar.xz |
(svn r14328) -Fix (r11822): when a company was renamed and then manager was renamed before building anything, company name changed
Diffstat (limited to 'src')
-rw-r--r-- | src/misc_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index 00169e034..b273b1ea2 100644 --- a/src/misc_cmd.cpp +++ b/src/misc_cmd.cpp @@ -269,7 +269,7 @@ CommandCost CmdChangePresidentName(TileIndex tile, uint32 flags, uint32 p1, uint free(p->president_name); p->president_name = strdup(_cmd_text); - if (p->name_1 == STR_SV_UNNAMED) { + if (p->name_1 == STR_SV_UNNAMED && p->name == NULL) { char buf[80]; snprintf(buf, lengthof(buf), "%s Transport", _cmd_text); |