Skip to content

Commit

Permalink
Fix QuestSuperTracking_ChooseClosestQuest error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jul 25, 2024
1 parent 4b0f5a6 commit 19bf421
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion WorldQuestTracker_Initialize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,11 @@ end
if (not GetFactionInfoByID) then
WorldQuestTrackerAddon.GetFactionDataByID = function(id)
---@type factioninfo
local fD = C_Reputation.GetFactionDataByID(id)
local fD = C_Reputation.GetFactionDataByID(id) --sometimes he data isn't yet loaded, calling the function will make the client download the quest info.
if (not fD) then
return
end

return fD.name, fD.description, fD.currentStanding, 0, fD.nextReactionThreshold, fD.currentReactionThreshold, fD.atWarWith, fD.canToggleAtWar, fD.isHeader, fD.isCollapsed, fD.isHeaderWithRep, fD.isWatched, fD.isChild, fD.factionID, fD.hasBonusRepGain, false

--[=[]]
Expand Down
2 changes: 1 addition & 1 deletion WorldQuestTracker_Tracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ local TrackerIconButtonOnClick = function(self, button)
if (self.questID == C_SuperTrack.GetSuperTrackedQuestID()) then
WorldQuestTracker.SuperTracked = nil
--C_SuperTrack.SetSuperTrackedQuestID(0)
QuestSuperTracking_ChooseClosestQuest()
--QuestSuperTracking_ChooseClosestQuest() --need to find the new equivalent function
return
end

Expand Down

0 comments on commit 19bf421

Please sign in to comment.