bubbles: check for valid elements on detection

This commit is contained in:
shagu
2020-05-26 19:30:01 +02:00
parent dc683b0cb0
commit f1002aa514
+1 -1
View File
@@ -18,7 +18,7 @@ pfUI:RegisterModule("bubbles", "vanilla:tbc", function ()
function pfUI.bubbles:IsBubble(f)
if f:GetName() then return end
if not f:GetRegions() then return end
return f:GetRegions():GetTexture() == "Interface\\Tooltips\\ChatBubble-Background"
return f:GetRegions().GetTexture and f:GetRegions():GetTexture() == "Interface\\Tooltips\\ChatBubble-Background"
end
function pfUI.bubbles:ProcessBubble(f)