gui: set fallback color values for broken configs

This commit is contained in:
shagu
2016-12-22 20:04:23 +01:00
parent 1d1b099d34
commit 96dc8f93a5
+3
View File
@@ -409,6 +409,9 @@ pfUI:RegisterModule("gui", function ()
frame.color.prev:SetAllPoints(frame.color)
local cr, cg, cb, ca = strsplit(",", category[config])
if not cr or not cg or not cb or not ca then
cr, cg, cb, ca = 1, 1, 1, 1
end
frame.color.prev:SetTexture(cr,cg,cb,ca)
frame.color:SetScript("OnClick", function()