From 97fa638754702f5e2ccc0d5860c7f0883e13f2cd Mon Sep 17 00:00:00 2001 From: Bunny67 Date: Sat, 14 Jul 2018 23:56:21 +0300 Subject: [PATCH] update --- ElvUI/Modules/DataTexts/Durability.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI/Modules/DataTexts/Durability.lua b/ElvUI/Modules/DataTexts/Durability.lua index 9468403..5bd1e22 100644 --- a/ElvUI/Modules/DataTexts/Durability.lua +++ b/ElvUI/Modules/DataTexts/Durability.lua @@ -4,7 +4,7 @@ local DT = E:GetModule("DataTexts"); --Cache global variables --Lua functions local _G = _G -local pairs = pairs +local pairs, ipairs = pairs, ipairs local format, join, upper = string.format, string.join, string.upper --WoW API / Variables local GetInventoryItemDurability = GetInventoryItemDurability @@ -36,7 +36,7 @@ local function OnEvent(self) lastPanel = self totalDurability = 100 - for _, value in pairs(slots) do + for _, value in ipairs(slots) do local slot = GetInventorySlotInfo(value) current, max = GetInventoryItemDurability(slot)