summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/order_cmd.cpp8
1 files 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();
}