Fixing problem with squadron not found for CAS tasking.

This commit is contained in:
FlightControl 2018-11-13 20:20:42 +01:00
parent 1b691e5887
commit 84e9d225e9

View File

@ -2637,8 +2637,7 @@ do -- AI_A2G_DISPATCHER
if DefenderTaskTarget and DefenderTaskTarget.Index == AttackerDetection.Index then
local Squadron = self:GetSquadronFromDefender( Defender )
local SquadronOverhead = self:GetSquadronOverhead( Squadron.SquadronName )
local SquadronOverhead = self:GetSquadronOverhead( DefenderSquadronName )
local DefenderSize = Defender:GetInitialSize()
if DefenderSize then