Quantcast

Fixed issue where the unknown recipes of your professions wasn't showing in a unit's tooltip.

mike [10-31-10 - 14:41]
Fixed issue where the unknown recipes of your professions wasn't showing in a unit's tooltip.
Filename
core.lua
diff --git a/core.lua b/core.lua
index 85f1bb8..dc55efa 100644
--- a/core.lua
+++ b/core.lua
@@ -569,7 +569,7 @@ function addon:OnInitialize()
 			       if not guid then
 				       return
 			       end
-			       local GUID = tonumber(string.sub(guid, 8, 12), 16)
+			       local GUID = tonumber(string.sub(guid, -12, -9), 16)
 			       local unit = private.mob_list[GUID] or private.vendor_list[GUID] or private.trainer_list[GUID]

 			       if not unit or not unit.item_list then