gui: set fallback color values for broken configs

This commit is contained in:
shagu
2016-12-22 20:19:52 +01:00
parent 96dc8f93a5
commit dd7e94bf0b
+3
View File
@@ -416,6 +416,9 @@ pfUI:RegisterModule("gui", function ()
frame.color:SetScript("OnClick", function()
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
local preview = this.prev
function ColorPickerFrame.func()