From ca32beb1f2066baabb2e05b9d40791e43c323ee5 Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Mon, 7 Jun 2021 08:53:54 -0500 Subject: [PATCH] Sanity check in EnumerateFrames (#8) --- libs/TipHooker-1.0/TipHooker-1.0.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/TipHooker-1.0/TipHooker-1.0.lua b/libs/TipHooker-1.0/TipHooker-1.0.lua index da55bec..cef67c3 100644 --- a/libs/TipHooker-1.0/TipHooker-1.0.lua +++ b/libs/TipHooker-1.0/TipHooker-1.0.lua @@ -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