From 46fe44c74a2f2958c405474ad55f9e64a3fee698 Mon Sep 17 00:00:00 2001 From: claywar Date: Wed, 19 Mar 2025 10:41:23 -0400 Subject: [PATCH] Fix invalid value passed into for loop in Fork in the Road --- scripts/missions/wotg/50_Fork_in_the_Road.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/missions/wotg/50_Fork_in_the_Road.lua b/scripts/missions/wotg/50_Fork_in_the_Road.lua index 4998f1e70df..993e9e9d3c6 100644 --- a/scripts/missions/wotg/50_Fork_in_the_Road.lua +++ b/scripts/missions/wotg/50_Fork_in_the_Road.lua @@ -43,7 +43,7 @@ end local dawndropOnEventFinish = function(player, csid, option, npc) local numDawndrops = 0 - for _, zoneInfoTable in zoneEventInfo do + for _, zoneInfoTable in pairs(zoneEventInfo) do if player:hasKeyItem(zoneInfoTable[1]) then numDawndrops = numDawndrops + 1 end @@ -57,7 +57,7 @@ local dawndropOnEventFinish = function(player, csid, option, npc) player:messageSpecial(ID.text.GATHERED_DAWNDROPS_LIGHT, xi.ki.PRIMAL_GLOW) player:messageName(ID.text.RETRACED_ALL_JUNCTIONS, nil) - for _, zoneInfoTable in zoneEventInfo do + for _, zoneInfoTable in pairs(zoneEventInfo) do if player:hasKeyItem(zoneInfoTable[1]) then player:delKeyItem(zoneInfoTable[1]) end