Adjustment to deal with full stacks better

Wobin [05-31-14 - 08:14]
Adjustment to deal with full stacks better
Filename
Roomba.lua
diff --git a/Roomba.lua b/Roomba.lua
index 53bdf9f..8e63872 100644
--- a/Roomba.lua
+++ b/Roomba.lua
@@ -206,7 +206,7 @@ function Roomba:StartStacking()
 			-- Find out how much we can fit
 			-- If it's too much, move all we can and target this slot as the next to fill
 			if (baseSlot.stack - baseSlot.count) < slot.count then
-				result = CallSecureProtected("PickupInventoryItem", INVENTORY_BACKPACK, slot.bagSlot, baseSlot.stack - baseSlot.count)
+				result = CallSecureProtected("PickupInventoryItem", INVENTORY_BACKPACK, slot.bagSlot)
 				if (result) then
 					result = CallSecureProtected("PlaceInInventory", INVENTORY_BACKPACK, baseSlot.bagSlot)
 				end