From 178e2475256c1f79472fae2b58641ba0608c2a7c Mon Sep 17 00:00:00 2001 From: Aldric Ducreux Date: Thu, 25 Apr 2024 00:54:01 +0200 Subject: [PATCH] Fix duplication of gossip id on same step --- Event.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Event.lua b/Event.lua index ad0777d..f810f71 100644 --- a/Event.lua +++ b/Event.lua @@ -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 }