mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
proper fix for sort error in FStack update function
This commit is contained in:
@@ -3,7 +3,7 @@ local mod = math.mod
|
|||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
local tostring = tostring
|
local tostring = tostring
|
||||||
local format, match = string.format, string.match
|
local format, match = string.format, string.match
|
||||||
local getn, tinsert, tsort, twipe = table.getn, table.insert, table.sort, table.wipe
|
local getn, setn, tinsert, tsort, twipe = table.getn, table.setn, table.insert, table.sort, table.wipe
|
||||||
-- WoW API
|
-- WoW API
|
||||||
local GetTime = GetTime
|
local GetTime = GetTime
|
||||||
|
|
||||||
@@ -86,11 +86,7 @@ local function FrameStackSort(b, a)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if a and b then
|
return a < b
|
||||||
return a < b
|
|
||||||
else
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function UpdateFrameStack(tooltip, showHidden)
|
function UpdateFrameStack(tooltip, showHidden)
|
||||||
@@ -99,6 +95,7 @@ function UpdateFrameStack(tooltip, showHidden)
|
|||||||
for i = 1, getn(frameStackList) do
|
for i = 1, getn(frameStackList) do
|
||||||
frameStackList[i] = nil
|
frameStackList[i] = nil
|
||||||
end
|
end
|
||||||
|
setn(frameStackList, 0)
|
||||||
|
|
||||||
for k in pairs(frameStackLevels) do
|
for k in pairs(frameStackLevels) do
|
||||||
frameStackLevels[k] = nil
|
frameStackLevels[k] = nil
|
||||||
|
|||||||
Reference in New Issue
Block a user