Skip to content

Commit

Permalink
Flag map before we try to place a pin
Browse files Browse the repository at this point in the history
Fixes #71 and #72
  • Loading branch information
p3lim committed Aug 11, 2024
1 parent 8a31eb7 commit 151af54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions providers/gossip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ function gossipProvider:AddPin(info, gossipInfo)
pin:SetID(gossipInfo.gossipOptionID)
pin.owner = self

-- flag the map for ancestry
addon:FlagMap(info.mapID)

if not pin:SetPosition(info.mapID, info.x, info.y) then
pin:Hide()
return
end

-- flag the map for ancestry
addon:FlagMap(info.mapID)

if info.isTaxi then
pin:SetSize(20, 20)
pin:SetIconAtlas('Taxi_Frame_Gray')
Expand Down

0 comments on commit 151af54

Please sign in to comment.