summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);