Skip to content

Commit

Permalink
Sanity check in EnumerateFrames (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Jun 7, 2021
1 parent 63b9514 commit ca32beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/TipHooker-1.0/TipHooker-1.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ local function InitializeHook(tipType)
-- Walk through all frames
local tooltip = EnumerateFrames()
while tooltip do
if tooltip:GetObjectType() == "GameTooltip" then
if tooltip.GetObjectType and tooltip:GetObjectType() == "GameTooltip" then
local name = tooltip:GetName()
if name then
for _, v in ipairs(TooltipList[tipType]) do
Expand Down

0 comments on commit ca32beb

Please sign in to comment.