summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/order_cmd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 88a2343f4..eefebf3ba 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -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);
+ }
+ }
}
}