From 8c0e10896086c36da3f9c028a397ee979fb34899 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 27 Aug 2008 19:54:41 +0000 Subject: (svn r14179) -Fix (r1): RemoveOrderFromAllVehicles() did not mark enough windows dirty. --- src/order_cmd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/order_cmd.cpp') 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); + } + } } } -- cgit v1.2.3-54-g00ecf