added some missing local variables in fs/fs_talkdialog.lua
This commit is contained in:
parent
21c8f1149d
commit
21005455ab
@ -13,11 +13,13 @@ yl_speak_up.input_talk = function(player, formname, fields)
|
||||
return
|
||||
end
|
||||
local n_id = yl_speak_up.speak_to[pname].n_id
|
||||
local d_id = yl_speak_up.speak_to[pname].d_id
|
||||
local dialog = yl_speak_up.speak_to[pname].dialog
|
||||
|
||||
-- the NPC needs to be configured first; route input to the configuration dialog
|
||||
if(not(yl_speak_up.speak_to[pname].dialog)
|
||||
or not(yl_speak_up.speak_to[pname].dialog.n_npc)
|
||||
or not(yl_speak_up.speak_to[pname].d_id)) then
|
||||
if(not(dialog)
|
||||
or not(dialog.n_npc)
|
||||
or not(d_id)) then
|
||||
yl_speak_up.input_fs_initial_config(player, formname, fields)
|
||||
return
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user