summaryrefslogtreecommitdiff
path: root/src/misc_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-15 08:37:40 +0000
committersmatz <smatz@openttd.org>2008-09-15 08:37:40 +0000
commit9954d13f06b60bd09c92b45f47a1f94194fe9979 (patch)
tree2a482c2ace03e76ecfc49b201f2db39535d959a5 /src/misc_cmd.cpp
parent244ccddc1bc283aadc1e845f308b144597968446 (diff)
downloadopenttd-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/misc_cmd.cpp')
-rw-r--r--src/misc_cmd.cpp2
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);