Quantcast

Fix vendor scan datamining issue, need to rewrite the function to get spell IDs off of the vendors.

ackis [06-13-09 - 23:18]
Fix vendor scan datamining issue, need to rewrite the function to get spell IDs off of the vendors.
Filename
ARLDatamine.lua
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index 0d1e780..93998db 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -1900,6 +1900,7 @@ function addon:ScanVendor()
 		-- Parse all the items on the merchant
 		for i = 1, GetMerchantNumItems(), 1 do
 			local name, _, _, _, numAvailable = GetMerchantItemInfo(i)
+
 			ARLDatamineTT:SetMerchantItem(i)
 			self:ScanToolTip(name, recipe_list, reverse_lookup, true, false)
 			self:PrintScanResults()
@@ -2399,6 +2400,7 @@ do

 		if (not spellid) then
 			self:Print("Recipe "..recipe_name.." has no reverse lookup")
+			return
 		end

 		local flags = scan_data.recipe_list[spellid]["Flags"]