Merge pull request #464 from FlightControl-Master/386-ai-designate

386 ai designate
This commit is contained in:
Sven Van de Velde 2017-04-24 13:25:23 +02:00 committed by GitHub
commit 34cca8a4ba

View File

@ -538,7 +538,7 @@ do -- DESIGNATE
--- @param Wrapper.Group#GROUP GroupReport
function( AttackGroup )
if self.FlashStatusMenu[AttackGroup] or AttackGroup:GetName() == MenuAttackGroup:GetName() then
if self.FlashStatusMenu[AttackGroup] or ( MenuAttackGroup and ( AttackGroup:GetName() == MenuAttackGroup:GetName() ) ) then
local DetectedReport = REPORT:New( "Targets ready to be designated:" )
local DetectedItems = self.Detection:GetDetectedItems()