diff Modules/Queue.lua @ 92:88898c1e9e61

Fixed queueing of items which have none at the AH.
author Zerotorescue
date Fri, 07 Jan 2011 23:14:33 +0100
parents a12d22ef3f39
children 31493364b163
line wrap: on
line diff
--- a/Modules/Queue.lua	Fri Jan 07 22:28:35 2011 +0100
+++ b/Modules/Queue.lua	Fri Jan 07 23:14:33 2011 +0100
@@ -109,8 +109,9 @@
 					
 					-- Auction value settings
 					local priceThreshold = addon:GetOptionByKey(groupName, "priceThreshold");
+					local value = (priceThreshold ~= 0 and addon:GetAuctionValue(itemLink, groupName));
 					
-					if priceThreshold == 0 or addon:GetAuctionValue(itemLink, groupName) >= priceThreshold then
+					if priceThreshold == 0 or value == -1 or value >= priceThreshold then
 						-- If no price threshold is set or the auction value is equal to or larger than the price threshold, then proceed
 						
 						self:Queue(i, amount, groupName);