fixed missing global n_id in exec_actions.lua

This commit is contained in:
Sokomine 2022-09-14 22:31:17 +02:00
parent ab9745ee01
commit b70bdc60b9

View File

@ -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)