unitframes: only access color if existing

This commit is contained in:
shagu
2017-12-24 12:03:58 +01:00
parent 869e4c91f7
commit 15df0c0f91
+1 -1
View File
@@ -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