changeset 92:88898c1e9e61

Fixed queueing of items which have none at the AH.
author Zerotorescue
date Fri, 07 Jan 2011 23:14:33 +0100
parents f10e9b7b7a5e
children bb65a57046f1
files Modules/Queue.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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);