From 5f51b1beefb7ab65648df747ec0a3dda703ce95d Mon Sep 17 00:00:00 2001 From: Sean Baildon Date: Sun, 22 Nov 2020 12:48:59 +0000 Subject: [PATCH] nameplates: fix set texture rgb --- modules/nameplates/nameplates.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)