summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-03-22 16:23:47 +0000
committerrubidium <rubidium@openttd.org>2008-03-22 16:23:47 +0000
commit4094e9b4950f377bc41f9d34f7efa5a3ee5638a7 (patch)
treec7e7931be878795e54561de621e41dadeb1382fe
parent389d89ea491981844d469d5ab12d1c64cb77c5e6 (diff)
downloadopenttd-4094e9b4950f377bc41f9d34f7efa5a3ee5638a7.tar.xz
(svn r12393) -Fix [FS#1872]: Vehicle lists related to stations not closed when the station is deleted.
-rw-r--r--src/station_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index 618587ffa..5dad18a43 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -953,7 +953,7 @@ static void StationViewWndProc(Window *w, WindowEvent *e)
case WE_DESTROY: {
WindowNumber wno =
- (w->window_number << 16) | GetStation(w->window_number)->owner;
+ (w->window_number << 16) | VLW_STATION_LIST | GetStation(w->window_number)->owner;
DeleteWindowById(WC_TRAINS_LIST, wno);
DeleteWindowById(WC_ROADVEH_LIST, wno);