From 84332a3ebf78e2ad6775fd22c603996b98246c76 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 15 Nov 2020 23:33:43 +0100 Subject: [PATCH] Update FlightGroup.lua Fixes bug when flight searches a tanker when fuel is low. --- Moose Development/Moose/Ops/FlightGroup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Ops/FlightGroup.lua b/Moose Development/Moose/Ops/FlightGroup.lua index 1080e01fe..2365c21c6 100644 --- a/Moose Development/Moose/Ops/FlightGroup.lua +++ b/Moose Development/Moose/Ops/FlightGroup.lua @@ -2474,7 +2474,7 @@ function FLIGHTGROUP:onafterFuelLow(From, Event, To) self:I(self.lid..string.format("Send to refuel at tanker %s", tanker:GetName())) -- Get a coordinate towards the tanker. - local coordinate=self:GetCoordinate():GetIntermediateCoordinate(tanker.flightgroup:GetCoordinate(), 0.75) + local coordinate=self:GetCoordinate():GetIntermediateCoordinate(tanker:GetCoordinate(), 0.75) self:Refuel(coordinate)