(svn r14007) -Fix [FS#2098]: Notify vehicle windows when their internal state is botched up from outside.

This commit is contained in:
frosch
2008-08-06 19:00:31 +00:00
parent cffd5d17de
commit acf224683d
2 changed files with 7 additions and 1 deletions

View File

@@ -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);
}
}