From 13abe1687ae6467858a1653fc471c8945eb3ec6e Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sat, 30 Sep 2023 19:38:19 +0200 Subject: [PATCH] make sure quest.npcs and quest.locations exist --- quest_api.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quest_api.lua b/quest_api.lua index 1ec2ff7..66fbd0d 100644 --- a/quest_api.lua +++ b/quest_api.lua @@ -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