@@ -1118,25 +1118,25 @@ CommandCost CmdRenamePresident(TileIndex
if (!IsUniquePresidentName(text)) return_cmd_error(STR_ERROR_NAME_MUST_BE_UNIQUE);
}
if (flags & DC_EXEC) {
Company *c = Company::Get(_current_company);
if (reset) {
c->president_name.clear();
} else {
c->president_name = text;
if (c->name_1 == STR_SV_UNNAMED && c->name.empty()) {
DoCommand(0, 0, 0, DC_EXEC, CMD_RENAME_COMPANY, text + " Transport");
DoCommand(DC_EXEC, CMD_RENAME_COMPANY, 0, 0, 0, text + " Transport");
MarkWholeScreenDirty();
CompanyAdminUpdate(c);
return CommandCost();
/**
* Get the service interval for the given company and vehicle type.