Quantcast

-Another freaking attempt at fixing the bag durability (another typo).

Xruptor [06-16-10 - 13:24]
-Another freaking attempt at fixing the bag durability (another typo).
Filename
XanDurability.lua
diff --git a/XanDurability.lua b/XanDurability.lua
index e0d1a92..a80f1a5 100644
--- a/XanDurability.lua
+++ b/XanDurability.lua
@@ -177,7 +177,7 @@ function f:GetDurabilityInfo()
 	for bag = 0, 4 do
 		for slot = 1, GetContainerNumSlots(bag) do
 			local hasCooldown, repairCost = tmpTip:SetBagItem(bag, slot)
-			local Minimum, Maximum = GetContainerItemDurability(slot)
+			local Minimum, Maximum = GetContainerItemDurability(bag, slot)

 			if repairCost and repairCost > 0 then
 				bagCost = bagCost + repairCost