Skip to content

Commit

Permalink
nameplates: fix set texture rgb
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaildon committed Nov 22, 2020
1 parent 98e8abe commit 5f51b1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/nameplates/nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ hooksecurefunc("CompactUnitFrame_UpdateAggroFlash", function(frame)
else
r, g, b = unpack(colours.na)
end
frame.healthBar.barTexture:SetVertexColor (r, g, b)
if frame.healthBar.barTexture then
frame.healthBar.barTexture:SetVertexColor (r, g, b)
end
frame.healthBar.background:SetVertexColor(r*multiplier, g*multiplier, b*multiplier, 1)
end)

Expand Down

0 comments on commit 5f51b1b

Please sign in to comment.