Skip to content

Commit

Permalink
Update Outfitter.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
GovtGeek authored Apr 17, 2023
1 parent 446f56b commit 4785b7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Outfitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7324,10 +7324,12 @@ function Outfitter:GetTrackingEnabled(pTexture)
return vActive, vIndex
end
end
return false, 0
end

function Outfitter:SetTrackingEnabled(pTexture, pEnabled)
local vActive, vIndex = self:GetTrackingEnabled(pTexture)
if pEnabled == 1 then pEnabled = true else pEnabled = false end
if vActive ~= pEnabled then
C_Minimap.SetTracking(vIndex, pEnabled == true or pEnabled == 1)
end
Expand Down

0 comments on commit 4785b7c

Please sign in to comment.