(svn r12393) -Fix [FS#1872]: Vehicle lists related to stations not closed when the station is deleted.
authorrubidium
Sat, 22 Mar 2008 16:23:47 +0000
changeset 9215 ce53893ccd80
parent 9214 9df7c7d7c9e4
child 9216 6200042de84e
(svn r12393) -Fix [FS#1872]: Vehicle lists related to stations not closed when the station is deleted.
src/station_gui.cpp
--- a/src/station_gui.cpp	Sat Mar 22 11:29:03 2008 +0000
+++ b/src/station_gui.cpp	Sat Mar 22 16:23:47 2008 +0000
@@ -953,7 +953,7 @@
 
 		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);