Still need to fix that index issue.

This commit is contained in:
FlightControl
2019-03-15 13:08:48 +01:00
parent 3b520ab0c4
commit 87a44f7f7f
3 changed files with 21 additions and 17 deletions

View File

@@ -1627,7 +1627,9 @@ do -- DETECTION_BASE
-- @return #DETECTION_BASE.DetectedItem
function DETECTION_BASE:GetDetectedItemByIndex( Index )
self:F( { DetectedItemsByIndex = self.DetectedItemsByIndex } )
self:I( { DetectedItemsByIndex = self.DetectedItemsByIndex } )
self:I( { self.DetectedItemsByIndex } )
local DetectedItem = self.DetectedItemsByIndex[Index]
if DetectedItem then