Skip to content

Commit

Permalink
Fix error when searching LFG
Browse files Browse the repository at this point in the history
Fixes #73, #62
  • Loading branch information
Gethe committed Dec 13, 2022
1 parent 541e498 commit fee1e84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Skin/Retail/Interface/FrameXML/LFGList.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ do --[[ FrameXML\LFGList.lua ]]
end
function Hook.LFGListUtil_SetSearchEntryTooltip(tooltip, resultID, autoAcceptOption)
local searchResultInfo = _G.C_LFGList.GetSearchResultInfo(resultID)
local _, _, _, _, _, _, _, _, displayType = _G.C_LFGList.GetActivityInfo(searchResultInfo.activityID)
if displayType ~= _G.LE_LFG_LIST_DISPLAY_TYPE_CLASS_ENUMERATE then return end
local activityInfo = _G.C_LFGList.GetActivityInfoTable(searchResultInfo.activityID)
if activityInfo.displayType ~= _G.Enum.LFGListDisplayType.ClassEnumerate then return end

local name = tooltip:GetName() .. "TextLeft"
local start
Expand Down
2 changes: 1 addition & 1 deletion dev/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ local function LoadLFGFunctions()
return info
end
function _G.C_LFGList.GetApplicationInfo(searchResultID)
return dungeonId, "invited", nil, nil, "TANK"
return dungeonId, "invited", nil, 1000, "TANK"
end

if _G.C_Scenario then
Expand Down

0 comments on commit fee1e84

Please sign in to comment.