Update FlightGroup.lua

Fixes bug when flight searches a tanker when fuel is low.
This commit is contained in:
Frank 2020-11-15 23:33:43 +01:00
parent 63ff79ef0b
commit 84332a3ebf

View File

@ -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)