From cb49d9cfe28bf38c93aa00bc21b4f0e757c5c521 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Fri, 25 Jun 2021 19:28:53 +0200 Subject: [PATCH] better handling of esc in edit options dialog --- fs_edit_options_dialog.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs_edit_options_dialog.lua b/fs_edit_options_dialog.lua index d71c62e..b9aa5f2 100644 --- a/fs_edit_options_dialog.lua +++ b/fs_edit_options_dialog.lua @@ -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