Fix: Prevent nil index error in QuestieTooltips_RegisterObjectiveTooltip

This commit is contained in:
Xurkon
2026-03-29 11:49:57 -05:00
parent 0f495108f2
commit 17dd969793
+3 -1
View File
@@ -1325,7 +1325,9 @@ end
function QuestieCompat:QuestieTooltips_RegisterObjectiveTooltip(questId, key, objective) function QuestieCompat:QuestieTooltips_RegisterObjectiveTooltip(questId, key, objective)
if string.find(key, "m_") then if string.find(key, "m_") then
local name = QuestieDB.QueryNPCSingle(tonumber(string.sub(key, 3)), "name") local name = QuestieDB.QueryNPCSingle(tonumber(string.sub(key, 3)), "name")
npActiveQuestNPCs[name] = key if name then
npActiveQuestNPCs[name] = key
end
end end
end end