Fixed an issue with clearing out an item from the queue when it's done making that item.
pschifferer [01-22-09 - 16:12]
Fixed an issue with clearing out an item from the queue when it's done making that item.
diff --git a/Cauldron/CauldronQueue.lua b/Cauldron/CauldronQueue.lua
index 457548e..e2337f8 100644
--- a/Cauldron/CauldronQueue.lua
+++ b/Cauldron/CauldronQueue.lua
@@ -329,8 +329,8 @@ function CauldronQueue:AdjustItemCount(queue, name, delta)
Cauldron:debug("AdjustItemCount: item.amount(delta)="..item.amount);
if item.amount < 1 then
- Cauldron:debug("AdjustItemCount: remove item: "..itemName);
- queue.main[itemName] = nil;
+ Cauldron:debug("AdjustItemCount: remove item: "..name);
+ queue.main[name] = nil;
end
end