diff --git a/modules/nameplates/nameplates.lua b/modules/nameplates/nameplates.lua index 97280a8..d9d3168 100644 --- a/modules/nameplates/nameplates.lua +++ b/modules/nameplates/nameplates.lua @@ -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)