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 | 9954d13f06b60bd09c92b45f47a1f94194fe9979 (patch) | |
tree | 2a482c2ace03e76ecfc49b201f2db39535d959a5 /src | |
parent | 244ccddc1bc283aadc1e845f308b144597968446 (diff) | |
download | openttd-9954d13f06b60bd09c92b45f47a1f94194fe9979.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); |