Hide the tooltip if the unit doesn't exist. I thought this would fix that empty tooltip bug, but apparently it doesn't.
Scott Sibley [09-17-10 - 05:49]
Hide the tooltip if the unit doesn't exist. I thought this would fix that empty tooltip bug, but apparently it doesn't.
diff --git a/StarTip.lua b/StarTip.lua
index a915f91..79a8892 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -637,7 +637,7 @@ function StarTip.OnTooltipSetUnit(...)
end
end
- if not UnitExists(StarTip.unit) then return end
+ if not UnitExists(StarTip.unit) then GameTooltip:Hide(); return end
if not StarTip.justSetUnit then
for k, v in StarTip:IterateModules() do