(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
1 changed files with 5 additions and 1 deletions

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