summaryrefslogtreecommitdiff
path: root/player_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-05-16 08:41:42 +0000
committertron <tron@openttd.org>2005-05-16 08:41:42 +0000
commitb18e4d1a8d5965a658651135f80c911ef2dc2f80 (patch)
tree9df333a348befd3735ef15766af2c97a8c70edf8 /player_gui.c
parentff52fc82670c88339468c1b8a6b4ebdd6a2d3336 (diff)
downloadopenttd-b18e4d1a8d5965a658651135f80c911ef2dc2f80.tar.xz
(svn r2329) CMD_CHANGE_PRESIDENT_NAME and CMD_CHANGE_COMPANY_NAME don't use p1, so don't send any meaningful value for it when invoking these commands
Diffstat (limited to 'player_gui.c')
-rw-r--r--player_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player_gui.c b/player_gui.c
index 6bc47700e..a1d142471 100644
--- a/player_gui.c
+++ b/player_gui.c
@@ -653,10 +653,10 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e)
_cmd_text = b;
switch (WP(w,def_d).byte_1) {
case 0: /* Change president name */
- DoCommandP(0, w->window_number, 0, NULL, CMD_CHANGE_PRESIDENT_NAME | CMD_MSG(STR_700D_CAN_T_CHANGE_PRESIDENT));
+ DoCommandP(0, 0, 0, NULL, CMD_CHANGE_PRESIDENT_NAME | CMD_MSG(STR_700D_CAN_T_CHANGE_PRESIDENT));
break;
case 1: /* Change company name */
- DoCommandP(0, w->window_number, 0, NULL, CMD_CHANGE_COMPANY_NAME | CMD_MSG(STR_700C_CAN_T_CHANGE_COMPANY_NAME));
+ DoCommandP(0, 0, 0, NULL, CMD_CHANGE_COMPANY_NAME | CMD_MSG(STR_700C_CAN_T_CHANGE_COMPANY_NAME));
break;
#ifdef ENABLE_NETWORK
case 2: /* Change company password */