Quantcast

Small bugfix for spell or tradeskill links in chat

Xruptor [08-26-16 - 17:28]
Small bugfix for spell or tradeskill links in chat
Filename
xanTooltipIcon.lua
xanTooltipIcon.toc
diff --git a/xanTooltipIcon.lua b/xanTooltipIcon.lua
index 68b1545..4bb771e 100644
--- a/xanTooltipIcon.lua
+++ b/xanTooltipIcon.lua
@@ -59,7 +59,7 @@ local function hookTip(tooltip)

 	tooltip:HookScript('OnTooltipSetItem', function(self)
 		local name, link = self:GetItem()
-		if string.len(name) > 0 and link then --recipes return nil for GetItem() so check for it
+		if name and string.len(name) > 0 and link then --recipes return nil for GetItem() so check for it
 			self.button.func(self, link)
 		end
 	end)
diff --git a/xanTooltipIcon.toc b/xanTooltipIcon.toc
index 979bfd6..b03fd61 100644
--- a/xanTooltipIcon.toc
+++ b/xanTooltipIcon.toc
@@ -2,6 +2,6 @@
 ## Title: XanTooltipIcon
 ## Notes: Adds an icon to tooltips for achievement or item chat links.
 ## Author: Xruptor
-## Version: 2.0
+## Version: 2.1

 xanTooltipIcon.lua