src/station_gui.cpp
changeset 8719 349c6abab093
parent 8420 4ebc9752e7bd
child 8750 375a8bcd4948
equal deleted inserted replaced
8718:bfaa2dd97b30 8719:349c6abab093
   951 			}
   951 			}
   952 			break;
   952 			break;
   953 
   953 
   954 		case WE_DESTROY: {
   954 		case WE_DESTROY: {
   955 			WindowNumber wno =
   955 			WindowNumber wno =
   956 				(w->window_number << 16) | GetStation(w->window_number)->owner;
   956 				(w->window_number << 16) | VLW_STATION_LIST | GetStation(w->window_number)->owner;
   957 
   957 
   958 			DeleteWindowById(WC_TRAINS_LIST, wno);
   958 			DeleteWindowById(WC_TRAINS_LIST, wno);
   959 			DeleteWindowById(WC_ROADVEH_LIST, wno);
   959 			DeleteWindowById(WC_ROADVEH_LIST, wno);
   960 			DeleteWindowById(WC_SHIPS_LIST, wno);
   960 			DeleteWindowById(WC_SHIPS_LIST, wno);
   961 			DeleteWindowById(WC_AIRCRAFT_LIST, wno);
   961 			DeleteWindowById(WC_AIRCRAFT_LIST, wno);