Quantcast

In addon:AddRecipeAcquire(): Fix longstanding (and yet somehow unreported) bug - the last acquire type/data in the list was never added. Fix was changing check from "i < numvars" to "i <= numvars".

James D. Callahan III [03-17-10 - 07:50]
In addon:AddRecipeAcquire(): Fix longstanding (and yet somehow unreported) bug - the last acquire type/data in the list was never added. Fix was changing check from "i < numvars" to "i <= numvars".
Filename
ARL.lua
diff --git a/ARL.lua b/ARL.lua
index fbb759e..78236e2 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -932,7 +932,7 @@ do
 		twipe(location_list)
 		twipe(location_checklist)

-		while i < numvars do
+		while i <= numvars do
 			local location
 			local acquire_type, acquire_id = select(i, ...)
 			i = i + 2