Skip to content

Commit

Permalink
database: only build unified markers on valid quests
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Aug 8, 2023
1 parent 15e5cea commit 33e8f90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions database.lua
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,9 @@ function pfDatabase:SearchQuestID(id, meta, maps)
meta["qmin"] = quests[id]["min"]

-- clear previous unified quest nodes
pfMap.unifiedcache[meta.quest] = {}
if meta.quest then
pfMap.unifiedcache[meta.quest] = {}
end

if pfQuest_config["currentquestgivers"] == "1" then
-- search quest-starter
Expand Down Expand Up @@ -1232,7 +1234,7 @@ function pfDatabase:SearchQuestID(id, meta, maps)
local addon = meta["addon"] or "PFDB"
if pfMap.nodes[addon] then
for map in pairs(pfMap.nodes[addon]) do
if pfMap.unifiedcache[meta.quest] and pfMap.unifiedcache[meta.quest][map] then
if meta.quest and pfMap.unifiedcache[meta.quest] and pfMap.unifiedcache[meta.quest][map] then
for hash, data in pairs(pfMap.unifiedcache[meta.quest][map]) do
meta = data.meta
meta["title"] = meta["quest"]
Expand Down

0 comments on commit 33e8f90

Please sign in to comment.