Skip to content

Commit

Permalink
Plugins/Nameplates: Add some nil checks
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Sep 16, 2024
1 parent 55c4b31 commit a415a5e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Plugins/Nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1779,12 +1779,16 @@ do
local guid = self:UnitGUID("target")
if nameplateIcons[guid] then
for _, tbl in next, nameplateIcons[guid] do
tbl.nameplateFrame:SetScale(GetCVar("nameplateSelectedScale"))
if tbl.nameplateFrame then
tbl.nameplateFrame:SetScale(GetCVar("nameplateSelectedScale"))
end
end
end
if prevTarget and nameplateIcons[prevTarget] then
for _, tbl in next, nameplateIcons[prevTarget] do
tbl.nameplateFrame:SetScale(GetCVar("nameplateGlobalScale"))
if tbl.nameplateFrame then
tbl.nameplateFrame:SetScale(GetCVar("nameplateGlobalScale"))
end
end
end
prevTarget = guid
Expand Down

0 comments on commit a415a5e

Please sign in to comment.