From 15df0c0f910791ad0bceea125d808db51cc814ab Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 24 Dec 2017 12:03:58 +0100 Subject: [PATCH] unitframes: only access color if existing --- api/unitframes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index 043f2242..e9d752a8 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1504,7 +1504,7 @@ function pfUI.uf.GetColor(self, preset) end else local color = UnitReactionColor[UnitReaction(unitstr, "player")] - r, g, b = color.r, color.g, color.b + if color then r, g, b = color.r, color.g, color.b end end elseif preset == "class" and config["classcolor"] == "1" then