From 6d16862126aad063a564c14c68254f89ac65d61e Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 20 Oct 2005 17:23:33 +0000 Subject: (svn r3072) CMD_RENAME_STATION isn't interested in the tile coordinates, so don't pass them --- station_gui.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/station_gui.c b/station_gui.c index 97b8c9ae6..dc8a95dc1 100644 --- a/station_gui.c +++ b/station_gui.c @@ -502,10 +502,8 @@ static void StationViewWndProc(Window *w, WindowEvent *e) case WE_ON_EDIT_TEXT: { if (e->edittext.str[0] != '\0') { - Station* st = GetStation(w->window_number); - _cmd_text = e->edittext.str; - DoCommandP(st->xy, w->window_number, 0, NULL, + DoCommandP(0, w->window_number, 0, NULL, CMD_RENAME_STATION | CMD_MSG(STR_3031_CAN_T_RENAME_STATION)); } } break; -- cgit v1.2.3-70-g09d2