make sure quest.npcs and quest.locations exist
This commit is contained in:
parent
94df301302
commit
13abe1687a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user