mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
unitframes: only access color if existing
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user