summaryrefslogtreecommitdiff
path: root/src
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
commit1ee5e2e0aa80215c26ed1cbd6782546da06d6b3b (patch)
treec7e7931be878795e54561de621e41dadeb1382fe /src
parent0fd41a14fb3d452301096871fe1bb8a4c68ad78e (diff)
downloadopenttd-1ee5e2e0aa80215c26ed1cbd6782546da06d6b3b.tar.xz
(svn r12393) -Fix [FS#1872]: Vehicle lists related to stations not closed when the station is deleted.
Diffstat (limited to 'src')
-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);