From d0655a48bab31903068d6e0f94323da8a8bda94d Mon Sep 17 00:00:00 2001 From: J0anJosep Date: Sat, 6 Nov 2021 23:04:33 +0100 Subject: Fix: Do not redraw vehicle lists when skip order command is tested. --- src/order_cmd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index f6e7f77a4..f282ca12b 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1136,11 +1136,11 @@ CommandCost CmdSkipToOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 v->UpdateRealOrderIndex(); InvalidateVehicleOrder(v, VIWD_MODIFY_ORDERS); - } - /* We have an aircraft/ship, they have a mini-schedule, so update them all */ - if (v->type == VEH_AIRCRAFT) SetWindowClassesDirty(WC_AIRCRAFT_LIST); - if (v->type == VEH_SHIP) SetWindowClassesDirty(WC_SHIPS_LIST); + /* We have an aircraft/ship, they have a mini-schedule, so update them all */ + if (v->type == VEH_AIRCRAFT) SetWindowClassesDirty(WC_AIRCRAFT_LIST); + if (v->type == VEH_SHIP) SetWindowClassesDirty(WC_SHIPS_LIST); + } return CommandCost(); } -- cgit v1.2.3-70-g09d2