summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-10-20 17:23:33 +0000
committertron <tron@openttd.org>2005-10-20 17:23:33 +0000
commit6a5c0fabddadee4a95b075a21856eb8afbf93c57 (patch)
treed1961073e1f538fbbb68f77aaf499eb7efa988df
parentd5eb4183b8618dbae4a317bd2d8041ae160dad09 (diff)
downloadopenttd-6a5c0fabddadee4a95b075a21856eb8afbf93c57.tar.xz
(svn r3072) CMD_RENAME_STATION isn't interested in the tile coordinates, so don't pass them
-rw-r--r--station_gui.c4
1 files changed, 1 insertions, 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;