From 340595b1a452ed2aad116a9ca07f8b972fa44ef8 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 4 Oct 2016 19:17:36 +0200 Subject: [PATCH] nameplate: only use color if existing --- modules/nameplates.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 3e14fcc6..07fe54ed 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -164,7 +164,7 @@ pfUI:RegisterModule("nameplates", function () -- adjust healthbar color local red, green, blue, _ = healthbar:GetStatusBarColor() - if pfUI_playerDB[name:GetText()] and pfUI_playerDB[name:GetText()]["class"] then + if pfUI_playerDB[name:GetText()] and pfUI_playerDB[name:GetText()]["class"] and RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]] then healthbar:SetStatusBarColor( RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].r, RAID_CLASS_COLORS[pfUI_playerDB[name:GetText()]["class"]].g,