From acf224683d1f3d40f74b16b75a904f5719d240c3 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 6 Aug 2008 19:00:31 +0000 Subject: (svn r14007) -Fix [FS#2098]: Notify vehicle windows when their internal state is botched up from outside. --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicle_gui.cpp') diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 5170ce9f7..2f47f7261 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -642,7 +642,7 @@ static inline void ChangeVehicleWindow(WindowClass window_class, VehicleID from_ if (w != NULL) { w->window_number = to_index; if (w->viewport != NULL) w->viewport->follow_vehicle = to_index; - w->SetDirty(); + if (to_index != INVALID_VEHICLE) InvalidateThisWindowData(w); } } -- cgit v1.2.3-70-g09d2