1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-14 10:09:11 +00:00

(svn r14179) -Fix (r1): RemoveOrderFromAllVehicles() did not mark enough windows dirty.

This commit is contained in:
frosch
2008-08-27 19:54:41 +00:00
parent 7ce75961b4
commit ef60a4cf35

View File

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