Skip to content

Commit

Permalink
Merge pull request #798 from Flamanis/LineTwo-not-existing
Browse files Browse the repository at this point in the history
Add check for lineTwo not existing in GetPetOwner
  • Loading branch information
Tercioo authored Jul 31, 2024
2 parents 802c3b6 + 55f76a2 commit 85158b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion classes/container_actors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ end
ownerGUID = tooltipData.guid
elseif (tooltipData.lines[1].leftText == petName) then
local lineTwo = tooltipData.lines[2 + cbMode]
if (lineTwo.type == 16 and lineTwo.guid) then
if (not lineTwo) then
if (Details222.Debug.DebugPets or Details222.Debug.DebugPlayerPets) then
Details:Msg("DebugPets|ActorContainer|Tooltip No LineTwo|PetName:", petName, "PetGUID:", petGUID, "ColorblindMode:", cbMode)
end
return
elseif (lineTwo.type == 16 and lineTwo.guid) then
ownerGUID = lineTwo.guid
else
lineText = lineTwo.leftText
Expand Down

0 comments on commit 85158b0

Please sign in to comment.