mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14179) -Fix (r1): RemoveOrderFromAllVehicles() did not mark enough windows dirty.
This commit is contained in:
parent
7ce75961b4
commit
ef60a4cf35
|
@ -1474,7 +1474,11 @@ void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination)
|
|||
}
|
||||
|
||||
/* Only invalidate once, and if needed */
|
||||
if (invalidate) InvalidateWindow(WC_VEHICLE_ORDERS, v->index);
|
||||
if (invalidate) {
|
||||
for (const Vehicle *w = v->FirstShared(); w != NULL; w = w->NextShared()) {
|
||||
InvalidateVehicleOrder(w);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue