Quantcast

Fix off-by-one error in itemcount condition.

Johnny C. Lam [09-22-12 - 04:37]
Fix off-by-one error in itemcount condition.

"itemset=T14 itemcount=2" should mean that at least 2 pieces of T14 are
required.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@542 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCompile.lua
diff --git a/OvaleCompile.lua b/OvaleCompile.lua
index ffa466a..d1a3abe 100644
--- a/OvaleCompile.lua
+++ b/OvaleCompile.lua
@@ -127,7 +127,7 @@ local function TestConditions(paramList)
 		if OvaleEquipement.nombre[set] then
 			nombre = OvaleEquipement.nombre[set]
 		end
-		if nombre<=count then
+		if nombre < count then
 			return false
 		end
 	end