# HG changeset patch # User glx # Date 1219872620 0 # Node ID c737dd2eb7c9e32f3cfd5859d4890d2fa3cbc113 # Parent 349c8abfb97dcaa208e9d26bc7579d93110c0251 (svn r14180) -Fix (r8293): close all related vehicle lists when closing a station window (and not only the train list). diff -r 349c8abfb97d -r c737dd2eb7c9 src/station_gui.cpp --- a/src/station_gui.cpp Wed Aug 27 19:54:41 2008 +0000 +++ b/src/station_gui.cpp Wed Aug 27 21:30:20 2008 +0000 @@ -699,10 +699,10 @@ 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()