From 86c19475799bd3857414903668a5daa4c54d0569 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Tue, 13 Dec 2011 21:10:43 +0000 Subject: [PATCH] (svn r23511) -Fix [FS#4885] (r23504): Aircraft orders could not be shared anymore when they had no range property declared (Hirundo) --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 44f6f295e2..41fc55a887 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). */