(svn r14007) -Fix [FS#2098]: Notify vehicle windows when their internal state is botched up from outside.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user