check damageTakenArray first
This commit is contained in:
parent
daca3912b9
commit
2c78489881
1 changed files with 5 additions and 3 deletions
|
|
@ -635,9 +635,11 @@ local segmentTypeToString = {
|
|||
|
||||
table.sort(damageTakenArray, Details.Sort2)
|
||||
|
||||
local targetName = damageTakenArray[1][1]
|
||||
if (targetName) then
|
||||
return targetName
|
||||
if (damageTakenArray[1]) then
|
||||
local targetName = damageTakenArray[1][1]
|
||||
if (targetName) then
|
||||
return targetName
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue