From 8ab14db3a3b8dee66f6f6f3bbaa9b39fada9e335 Mon Sep 17 00:00:00 2001 From: Xurkon Date: Thu, 21 May 2026 19:46:17 -0500 Subject: [PATCH] fix(quest): map pins disappear after first kill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AlreadySpawned kept stale entries after UnloadQuestFrames ran. The draw path for incomplete objectives never cleared it — only completed objectives called _UnloadAlreadySpawnedIcons. Added clear at the start of the spawnList draw path so _DetermineIconsToDraw sees an empty AlreadySpawned and recreates icons each update cycle. --- Modules/Quest/QuestieQuest.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/Quest/QuestieQuest.lua b/Modules/Quest/QuestieQuest.lua index a492752..20abca5 100644 --- a/Modules/Quest/QuestieQuest.lua +++ b/Modules/Quest/QuestieQuest.lua @@ -1513,6 +1513,11 @@ function QuestieQuest:PopulateObjective(quest, objectiveIndex, objective, blockI if objective.spawnList and next(objective.spawnList) then Questie:Debug(Questie.DEBUG_DEVELOP, "[QuestieQuest:PopulateObjective] spawnList present for quest:", quest.Id, "objIdx:", objectiveIndex, "spawnList entries:", (function() local n=0 for _ in pairs(objective.spawnList) do n=n+1 end return n end)()) + + -- Clear stale AlreadySpawned entries before drawing. Frames may have been + -- unloaded by UnloadQuestFrames but AlreadySpawned still references dead frames. + _UnloadAlreadySpawnedIcons(objective) + local maxPerType = 300 if Questie.db.profile.enableIconLimit and Questie.db.profile.iconLimit < maxPerType then