summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-08-27 19:54:41 +0000
committerfrosch <frosch@openttd.org>2008-08-27 19:54:41 +0000
commit8c0e10896086c36da3f9c028a397ee979fb34899 (patch)
tree20bb441d05caab2cfde1cf76d774b2d948a84f1e /src
parentb4c0a3efe3f558eeba41103f596374f7815a2f78 (diff)
downloadopenttd-8c0e10896086c36da3f9c028a397ee979fb34899.tar.xz
(svn r14179) -Fix (r1): RemoveOrderFromAllVehicles() did not mark enough windows dirty.
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);
+ }
+ }
}
}