diff options
author | glx <glx@openttd.org> | 2008-08-27 21:30:20 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-08-27 21:30:20 +0000 |
commit | e598fa470194d9f3341e43d5bfc59399cde54a3e (patch) | |
tree | 9fc6216d3674c5d9ea6c58a153cb692d2113947d /src | |
parent | ef60a4cf359e42f04f7c0ede0bd275ec28687719 (diff) | |
download | openttd-e598fa470194d9f3341e43d5bfc59399cde54a3e.tar.xz |
(svn r14180) -Fix (r8293): close all related vehicle lists when closing a station window (and not only the train list).
Diffstat (limited to 'src')
-rw-r--r-- | src/station_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index c382c783a..341cd4164 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -699,10 +699,10 @@ struct StationViewWindow : public Window { WindowNumber wno = (this->window_number << 16) | VLW_STATION_LIST | GetStation(this->window_number)->owner; - DeleteWindowById(WC_TRAINS_LIST, wno); - DeleteWindowById(WC_ROADVEH_LIST, wno); - DeleteWindowById(WC_SHIPS_LIST, wno); - DeleteWindowById(WC_AIRCRAFT_LIST, wno); + DeleteWindowById(WC_TRAINS_LIST, wno | (VEH_TRAIN << 11)); + DeleteWindowById(WC_ROADVEH_LIST, wno | (VEH_ROAD << 11)); + DeleteWindowById(WC_SHIPS_LIST, wno | (VEH_SHIP << 11)); + DeleteWindowById(WC_AIRCRAFT_LIST, wno | (VEH_AIRCRAFT << 11)); } virtual void OnPaint() |