diff --git a/functions.lua b/functions.lua index 8d7c83d..80bb539 100644 --- a/functions.lua +++ b/functions.lua @@ -3199,10 +3199,10 @@ yl_speak_up.input_talk = function(player, formname, fields) end -- end of loop over d_option.o_results -- if there is a trade associated with this dialog and option, show that trade now - local trade_id = tostring(d_id).." "..tostring(o_id) + local trade_id = tostring(d_id).." "..tostring(o) if(dialog.trades and dialog.trades[ trade_id ]) then -- remember which option was selected - yl_speak_up.speak_to[pname].o_id = o_id + yl_speak_up.speak_to[pname].o_id = o -- which dialog shall be shown in case of a successful trade? yl_speak_up.speak_to[pname].target_d_id = target_dialog -- show the trade dialog