This commit is contained in:
Bunny67
2018-06-02 19:34:22 +03:00
parent 3da35c7a0e
commit fb6f8ff730
+13 -11
View File
@@ -414,16 +414,18 @@ function A:UpdateHeader(header)
weaponPosition = 1 weaponPosition = 1
end end
for i = 1, 24 do local i, aura, buffIndex, icon = 0
local aura, _ = freshTable() while true do
local buffIndex = GetPlayerBuff(i - 1, filter) aura = freshTable()
aura.icon = GetPlayerBuffTexture(buffIndex) buffIndex = GetPlayerBuff(i, filter)
if aura.icon then icon = GetPlayerBuffTexture(buffIndex)
aura.count, aura.dispelType, aura.expires = GetPlayerBuffApplications(buffIndex), GetPlayerBuffDispelType(buffIndex), GetPlayerBuffTimeLeft(buffIndex) if not icon then releaseTable(aura) break end
aura.index = buffIndex aura.count, aura.dispelType, aura.expires = GetPlayerBuffApplications(buffIndex), GetPlayerBuffDispelType(buffIndex), GetPlayerBuffTimeLeft(buffIndex)
aura.filter = filter aura.icon = icon
tinsert(sortingTable, aura) aura.index = buffIndex
end aura.filter = filter
tinsert(sortingTable, aura)
i = i + 1
end end
local sortMethod = (sorters[db.sortMethod] or sorters["INDEX"])[db.sortDir == "-"][db.seperateOwn] local sortMethod = (sorters[db.sortMethod] or sorters["INDEX"])[db.sortDir == "-"][db.seperateOwn]
@@ -431,7 +433,7 @@ function A:UpdateHeader(header)
self:ConfigureAuras(header, sortingTable, weaponPosition) self:ConfigureAuras(header, sortingTable, weaponPosition)
while sortingTable[1] do while sortingTable[1] do
releaseTable(wipe(sortingTable)) releaseTable(tremove(sortingTable))
end end
end end