api: abort skin button on empty frame

This commit is contained in:
shagu
2017-09-26 00:11:12 +02:00
parent 6eaa820c48
commit 86c5837afe
+1
View File
@@ -459,6 +459,7 @@ end
function pfUI.api.SkinButton(button, cr, cg, cb)
local b = getglobal(button)
if not b then b = button end
if not b then return end
if not cr or not cg or not cb then
_, class = UnitClass("player")
local color = RAID_CLASS_COLORS[class]