forked from your-land-mirror/yl_speak_up
fixed bug in initial configuration
This commit is contained in:
parent
ec40c4c1a2
commit
4c4992f985
@ -2693,8 +2693,10 @@ yl_speak_up.input_talk = function(player, formname, fields)
|
|||||||
local dialog = yl_speak_up.speak_to[pname].dialog
|
local dialog = yl_speak_up.speak_to[pname].dialog
|
||||||
local d_id = yl_speak_up.speak_to[pname].d_id
|
local d_id = yl_speak_up.speak_to[pname].d_id
|
||||||
local count = 0
|
local count = 0
|
||||||
for k,v in pairs(dialog) do
|
if(dialog and dialog.n_dialogs) then
|
||||||
count = count + 1
|
for k,v in pairs(dialog.n_dialogs) do
|
||||||
|
count = count + 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
-- give the NPC its first dialog
|
-- give the NPC its first dialog
|
||||||
if(not(dialog) or count==0) then
|
if(not(dialog) or count==0) then
|
||||||
|
Loading…
Reference in New Issue
Block a user