From 6be25eabb36b2d004554ef60f007cad909cb50d8 Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 15 Sep 2008 08:37:40 +0000 Subject: [PATCH] (svn r14328) -Fix (r11822): when a company was renamed and then manager was renamed before building anything, company name changed --- src/misc_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc_cmd.cpp b/src/misc_cmd.cpp index 00169e0347..b273b1ea24 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);