Skip to content

Commit

Permalink
Fix duplication of gossip id on same step
Browse files Browse the repository at this point in the history
  • Loading branch information
Neogeekmo committed Apr 24, 2024
1 parent 806cc82 commit 178e247
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ local function SetGossipOptionID(self)
if not AprRC:IsCurrentStepFarAway() then
local currentStep = AprRC:GetLastStep()
if AprRC:HasStepOption("GossipOptionIDs") then
if not AprRC:Contains(currentStep["GossipOptionIDs"], gossipOptionID) then
tinsert(currentStep["GossipOptionIDs"], gossipOptionID)
end
tinsert(currentStep["GossipOptionIDs"], gossipOptionID)
else
currentStep["GossipOptionIDs"] = { gossipOptionID }
Expand Down

0 comments on commit 178e247

Please sign in to comment.