This commit is contained in:
FlightControl
2017-03-17 13:59:19 +01:00
parent 7231492eaa
commit 3f0c983194
14 changed files with 81 additions and 70405 deletions

View File

@@ -1379,10 +1379,10 @@ do -- DETECTION_UNITS
if DetectedItemUnit then
self:T(DetectedItemUnit)
local UnitCategoryName = DetectedItemUnit:GetCategoryName()
local UnitCategoryType = DetectedItemUnit:GetTypeName()
local UnitCategoryName = DetectedItemUnit:GetCategoryName() or ""
local UnitCategoryType = DetectedItemUnit:GetTypeName() or ""
if DetectedItem.Type then
if DetectedItem.Type and UnitCategoryName and UnitCategoryType then
UnitCategoryText = UnitCategoryName .. " (" .. UnitCategoryType .. ") at "
else
UnitCategoryText = "Unknown target at "