forked from Sokomine/yl_speak_up
prepare dialog.trades before actually starting to talk
This commit is contained in:
parent
1a7184420a
commit
e7d82c1d52
@ -466,12 +466,12 @@ function yl_speak_up.talk(self, clicker)
|
||||
yl_speak_up.speak_to[pname].may_edit_this_npc = true
|
||||
end
|
||||
|
||||
yl_speak_up.show_fs(clicker, "talk", {n_id = n_id})
|
||||
|
||||
local dialog = yl_speak_up.speak_to[pname].dialog
|
||||
if(not(dialog.trades)) then
|
||||
dialog.trades = {}
|
||||
end
|
||||
|
||||
yl_speak_up.show_fs(clicker, "talk", {n_id = n_id})
|
||||
end
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user