mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-06-18 13:19:18 +02:00
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