ui-widgets: abort early on invalid frames

This commit is contained in:
shagu
2023-11-10 19:20:56 +01:00
parent fc361152a1
commit dc691b756b
+1
View File
@@ -870,6 +870,7 @@ end
-- 'frame' [frame] the frame that should be stripped.
-- 'layer' [string] texture layer.
function pfUI.api.StripTextures(frame, hide, layer)
if not frame then return end
for _,v in ipairs({frame:GetRegions()}) do
if v.SetTexture then
local check = true