diff --git a/exec_actions.lua b/exec_actions.lua index 31ad6a5..6b312b5 100644 --- a/exec_actions.lua +++ b/exec_actions.lua @@ -721,6 +721,7 @@ yl_speak_up.input_fs_action_evaluate = function(player, formname, fields) if(player and a and a.a_value) then local custom_data = yl_speak_up.custom_functions_a_[a.a_value] if(custom_data and custom_data.code_input_handler) then + local n_id = yl_speak_up.speak_to[pname].n_id local fun = custom_data.code_input_handler -- actually call the function (which may change the value of fields) fields = fun(player, n_id, a, formname, fields)