summaryrefslogtreecommitdiff
path: root/src/player_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-15 22:58:41 +0000
committersmatz <smatz@openttd.org>2008-09-15 22:58:41 +0000
commit5f4ff33ce340fc71e17abbdede06226dd4e56a54 (patch)
tree45c367908e8900a20e722b7841e5eaf20df8cafd /src/player_gui.cpp
parenta20dae0df1614f8701c1ac3a20a64fe6fd4fda5d (diff)
downloadopenttd-5f4ff33ce340fc71e17abbdede06226dd4e56a54.tar.xz
(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, president and company renaming commands, too
Diffstat (limited to 'src/player_gui.cpp')
-rw-r--r--src/player_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player_gui.cpp b/src/player_gui.cpp
index 058522f71..77a850ead 100644
--- a/src/player_gui.cpp
+++ b/src/player_gui.cpp
@@ -1335,11 +1335,11 @@ struct PlayerCompanyWindow : Window
default: NOT_REACHED();
case PCW_WIDGET_PRESIDENT_NAME:
- DoCommandP(0, 0, 0, NULL, CMD_CHANGE_PRESIDENT_NAME | CMD_MSG(STR_700D_CAN_T_CHANGE_PRESIDENT));
+ DoCommandP(0, 0, 0, NULL, CMD_RENAME_PRESIDENT | CMD_MSG(STR_700D_CAN_T_CHANGE_PRESIDENT));
break;
case PCW_WIDGET_COMPANY_NAME:
- DoCommandP(0, 0, 0, NULL, CMD_CHANGE_COMPANY_NAME | CMD_MSG(STR_700C_CAN_T_CHANGE_COMPANY_NAME));
+ DoCommandP(0, 0, 0, NULL, CMD_RENAME_COMPANY | CMD_MSG(STR_700C_CAN_T_CHANGE_COMPANY_NAME));
break;
}
}