mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Still need to fix that index issue.
This commit is contained in:
@@ -3983,7 +3983,9 @@ do -- AI_A2G_DISPATCHER
|
||||
self:ClearDefenderTask( DefenderGroup )
|
||||
end
|
||||
else
|
||||
-- TODO: prio 1, what is this index stuff again, simplify it.
|
||||
if DefenderTask.Target then
|
||||
self:F( { Target = DefenderTask.Target } )
|
||||
local AttackerItem = Detection:GetDetectedItemByIndex( DefenderTask.Target.Index )
|
||||
if not AttackerItem then
|
||||
self:F( { "Removing obsolete Target:", DefenderTask.Target.Index } )
|
||||
|
||||
Reference in New Issue
Block a user