diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/order_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 44f6f295e..41fc55a88 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1401,7 +1401,7 @@ CommandCost CmdModifyOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 */ bool CheckAircraftOrderDistance(const Aircraft *v, const Order *first) { - if (first == NULL) return true; + if (first == NULL || v->acache.cached_max_range == 0) return true; /* Iterate over all orders to check the distance between all * 'goto' orders and their respective next order (of any type). */ |