comparison 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
comparison
equal deleted inserted replaced
152:cbb427a8d5a5 153:613fd4bc6999
179 Crafting.Export(Export) 179 Crafting.Export(Export)
180 end 180 end
181 181
182 function ItemAuditor:GetReagentCost(link, total) 182 function ItemAuditor:GetReagentCost(link, total)
183 local totalCost = 0 183 local totalCost = 0
184 184
185 if not link then
186 return 99990000
187 end
188
185 if PT:ItemInSet(link,"Tradeskill.Mat.BySource.Vendor") then 189 if PT:ItemInSet(link,"Tradeskill.Mat.BySource.Vendor") then
186 local _, _, _, _, _, _, _, _, _, _, itemVendorPrice = GetItemInfo (link); 190 local _, _, _, _, _, _, _, _, _, _, itemVendorPrice = GetItemInfo (link);
187 totalCost = itemVendorPrice * total 191 totalCost = itemVendorPrice * total
188 total = 0 192 total = 0
189 end 193 end