Quantcast

Scratch that, modified Character to include counts again

Joseph Collins [01-30-13 - 10:29]
Scratch that, modified Character to include counts again
Filename
Character.lua
diff --git a/Character.lua b/Character.lua
index 39f9de6..bbb80f6 100644
--- a/Character.lua
+++ b/Character.lua
@@ -134,6 +134,7 @@ function Character:UpdateBags()
 			link = GetContainerItemLink(bag, slot)
 			if link then
 				ItemScanner:AddToItemPool(link, function(link)
+					local count = select(2, GetContainerItemInfo(bag, slot))
 					tinsert(self.db.bags, {bag, slot, link, count})
 				end)
 			end
@@ -151,6 +152,7 @@ function Character:UpdateBank()
 			link = GetContainerItemLink(bag, slot)
 			if link then
 				ItemScanner:AddToItemPool(link, function(link)
+					local count = select(2, GetContainerItemInfo(bag, slot))
 					tinsert(self.db.bank, {bag, slot, link, count})
 				end)
 			end