diff options
author | tron <tron@openttd.org> | 2005-05-16 08:41:42 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-05-16 08:41:42 +0000 |
commit | d3f8772497dd39d9a25737dc11d069131afee26f (patch) | |
tree | 9df333a348befd3735ef15766af2c97a8c70edf8 /player_gui.c | |
parent | 14f482aeb5ba12fdce7d1ac318c0ffd302c049e7 (diff) | |
download | openttd-d3f8772497dd39d9a25737dc11d069131afee26f.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.c | 4 |
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 */ |