Fix MenuAttackGroup bug

This commit is contained in:
FlightControl 2017-04-24 13:24:47 +02:00
parent 456636601f
commit 4d0740ca6f

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