diff options
author | frosch <frosch@openttd.org> | 2008-08-27 19:54:41 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-08-27 19:54:41 +0000 |
commit | ef60a4cf359e42f04f7c0ede0bd275ec28687719 (patch) | |
tree | 20bb441d05caab2cfde1cf76d774b2d948a84f1e | |
parent | 7ce75961b462b5f0173cde9b86542707cb22e242 (diff) | |
download | openttd-ef60a4cf359e42f04f7c0ede0bd275ec28687719.tar.xz |
(svn r14179) -Fix (r1): RemoveOrderFromAllVehicles() did not mark enough windows dirty.
-rw-r--r-- | src/order_cmd.cpp | 6 |
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); + } + } } } |