(svn r3072) CMD_RENAME_STATION isn't interested in the tile coordinates, so don't pass them
authortron
Thu, 20 Oct 2005 17:23:33 +0000
changeset 2543 a6344040f735
parent 2542 fdea27216e48
child 2544 50cb52cdeb73
(svn r3072) CMD_RENAME_STATION isn't interested in the tile coordinates, so don't pass them
station_gui.c
--- a/station_gui.c	Thu Oct 20 15:15:58 2005 +0000
+++ b/station_gui.c	Thu Oct 20 17:23:33 2005 +0000
@@ -502,10 +502,8 @@
 
 	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;