changeset 117:e16cd6ed3ba3 Release 2010-09-02

Merged: Fixed a bug introduced in r110 (2010-08-30) where the price an item should sell for was not being calculated.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 02 Sep 2010 11:49:28 -0700
parents 79dc87430cb3 (current diff) 44be3f350c9e (diff)
children 92b66533c386
files CHANGELOG.txt
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Modules/Crafting.lua	Thu Sep 02 07:03:38 2010 -0700
+++ b/Modules/Crafting.lua	Thu Sep 02 11:49:28 2010 -0700
@@ -435,6 +435,9 @@
 					}
 					totalCost  = totalCost + reagentTotalCost
 				end
+
+				local price = (self:GetAuctionPrice(itemLink) or 0)
+				totalCost  = totalCost + (price * ItemAuditor:GetAHCut())
 				local data = {
 					recipeLink = recipeLink,
 					recipeID = Utils.GetItemID(recipeLink),
@@ -459,9 +462,6 @@
 				if data.queue > 0 then
 					data.queue = max(0, data.queue - count)
 				end
-
-				local price = (self:GetAuctionPrice(itemLink) or 0)
-				totalCost  = totalCost + (price * ItemAuditor:GetAHCut())
 				
 				-- If a tradeskill makes 5 at a time and something asks for 9, we should only 
 				-- craft twice to get 10.