Skip to content

Commit

Permalink
database: make sure the quest-cache always exists
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Nov 17, 2023
1 parent c6fc61b commit e463c2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions database.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,9 @@ function pfDatabase:GetQuestIDs(qid)
if header or not title then return end
local identifier = title .. ":" .. ( level or "") .. ":" .. ( objective or "") .. ":" .. ( text or "")

-- always make sure the quest-cache exists
pfQuest_questcache = pfQuest_questcache or {}

if pfQuest_questcache[identifier] and pfQuest_questcache[identifier][1] then
return pfQuest_questcache[identifier]
end
Expand Down

0 comments on commit e463c2f

Please sign in to comment.