Updates to make the tasking work correctly.

This commit is contained in:
FlightControl
2019-03-16 09:51:09 +01:00
parent 87a44f7f7f
commit fb23ac1d55
5 changed files with 30 additions and 20 deletions

View File

@@ -3985,7 +3985,7 @@ do -- AI_A2G_DISPATCHER
else
-- TODO: prio 1, what is this index stuff again, simplify it.
if DefenderTask.Target then
self:F( { Target = DefenderTask.Target } )
self:F( { TargetIndex = DefenderTask.Target.Index } )
local AttackerItem = Detection:GetDetectedItemByIndex( DefenderTask.Target.Index )
if not AttackerItem then
self:F( { "Removing obsolete Target:", DefenderTask.Target.Index } )