make sure quest.npcs and quest.locations exist

This commit is contained in:
Sokomine 2023-09-30 19:38:19 +02:00
parent 94df301302
commit 13abe1687a

View File

@ -594,6 +594,12 @@ yl_speak_up.load_quest = function(q_id)
if(quest and not(quest.step_data)) then
quest.step_data = {}
end
if(quest and not(quest.npcs)) then
quest.npcs = {}
end
if(quest and not(quest.locations)) then
quest.locations = {}
end
if(quest) then
for s, d in pairs(quest.step_data) do
if(not(d.where)) then