better handling of esc in edit options dialog

This commit is contained in:
Sokomine 2021-06-25 19:28:53 +02:00
parent d3a9d20d43
commit cb49d9cfe2

View File

@ -21,7 +21,9 @@ yl_speak_up.input_edit_option_dialog = function(player, formname, fields)
-- this meny is specific to an option for a dialog; if no dialog is selected, we really
-- can't know what to do
if(not(d_id) or not(o_id)) then
if(not(o_id) and d_id) then
yl_speak_up.show_fs(player, "talk", {n_id = n_id, d_id = d_id})
elseif(not(d_id)) then
return
end