From 03da9151c42e6f8ee97eccd9c46f429e1d58a767 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Fri, 9 Feb 2024 06:28:36 +0100 Subject: [PATCH] catch missing yl_speak_up.edit_mode in show_fs (which is not yet split up properly) --- show_fs.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/show_fs.lua b/show_fs.lua index 2e6f4db..5221581 100644 --- a/show_fs.lua +++ b/show_fs.lua @@ -196,6 +196,7 @@ yl_speak_up.show_fs = function(player, fs_name, param) and fs_name ~= "msg" and fs_name ~= "player_offers_item" -- is the player editing the NPC? that is: might there be any changes? + and yl_speak_up.edit_mode and (yl_speak_up.edit_mode[pname] == yl_speak_up.speak_to[pname].n_id)) then local last_fs = yl_speak_up.speak_to[pname].last_fs local d_id = yl_speak_up.speak_to[pname].d_id