Skip to content

Commit

Permalink
fix potential invalid order function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jodsderechte committed Sep 15, 2024
1 parent 402b506 commit 935cf7b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions GroupFinderRio.lua
Original file line number Diff line number Diff line change
Expand Up @@ -444,18 +444,14 @@ end
---@param b number
---@return boolean
local function compareSearchEntriesRaid(a,b)
if not a then
return false
elseif not b then
return true
end

local _, appStatusA, pendingStatusA, appDurationA = C_LFGList.GetApplicationInfo(a)
local _, appStatusB, pendingStatusB, appDurationB = C_LFGList.GetApplicationInfo(b)
local isApplicationA = appStatusA ~= "none" or pendingStatusA or false
local isApplicationB= appStatusB ~= "none" or pendingStatusB or false
if isApplicationA ~= isApplicationB then
return isApplicationA
end
end
if appDurationA ~= appDurationB then
return appDurationA > appDurationB
end
Expand Down

0 comments on commit 935cf7b

Please sign in to comment.