Mercurial > wow > itemauditor
diff Modules/QuickAuctions.lua @ 153:613fd4bc6999
Ticket 45 - Fixed a bug that caused the crafting window to craft if you turn off all of the deciders.
Fixed an issue where the crafting window would crash if GetTradeSkillReagentItemLink() failed to return a link. This happened with my Wild Turkey
author | Asa Ayers <Asa.Ayers@Gmail.com> |
---|---|
date | Sat, 04 Dec 2010 08:41:44 -0800 |
parents | 5f6182a97d40 |
children |
line wrap: on
line diff
--- a/Modules/QuickAuctions.lua Mon Nov 29 11:25:55 2010 -0800 +++ b/Modules/QuickAuctions.lua Sat Dec 04 08:41:44 2010 -0800 @@ -181,7 +181,11 @@ function ItemAuditor:GetReagentCost(link, total) local totalCost = 0 - + + if not link then + return 99990000 + end + if PT:ItemInSet(link,"Tradeskill.Mat.BySource.Vendor") then local _, _, _, _, _, _, _, _, _, _, itemVendorPrice = GetItemInfo (link); totalCost = itemVendorPrice * total