Quantcast

-Fixed a slight typo on my part where it was treating bag durability as equipped durability.

Xruptor [06-16-10 - 13:20]
-Fixed a slight typo on my part where it was treating bag durability as equipped durability.
Filename
XanDurability.lua
XanDurability.toc
diff --git a/XanDurability.lua b/XanDurability.lua
index 2ca3579..e0d1a92 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 = GetInventoryItemDurability(slot)
+			local Minimum, Maximum = GetContainerItemDurability(slot)

 			if repairCost and repairCost > 0 then
 				bagCost = bagCost + repairCost
diff --git a/XanDurability.toc b/XanDurability.toc
index ae52dfd..72dfbdc 100644
--- a/XanDurability.toc
+++ b/XanDurability.toc
@@ -2,7 +2,7 @@
 ## Title: XanDurability
 ## Notes: A small window that displays the total current armour durability.
 ## Author: Xruptor
-## Version: 1.1
+## Version: 1.2
 ## SavedVariablesPerCharacter: XanDUR_DB

 XanDurability.lua