ui-widgets: only set checked textures if existing

This commit is contained in:
shagu
2020-12-30 16:46:15 +01:00
parent 8828748635
commit 54f65c0a8e
+1 -1
View File
@@ -639,7 +639,7 @@ function pfUI.api.SkinButton(button, cr, cg, cb, icon, disableHighlight)
b:SetPushedTexture("")
b:SetDisabledTexture("")
if b.SetCheckedTexture then
if b.SetCheckedTexture and b:GetCheckedTexture() then
b:GetCheckedTexture():SetTexture(cr, cg, cb, .25)
end