From 9fadc666aec68a822f09e7c6d630b35865b3c48f Mon Sep 17 00:00:00 2001 From: Sokomine Date: Thu, 5 May 2022 13:49:52 +0200 Subject: [PATCH] make sure generic dialogs never get injected in edit mode --- functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.lua b/functions.lua index e4626f7..23d1b3b 100644 --- a/functions.lua +++ b/functions.lua @@ -442,7 +442,7 @@ function yl_speak_up.talk(self, clicker) if(yl_speak_up.edit_mode[pname] == n_id) then player = nil end - yl_speak_up.speak_to[pname].dialog = yl_speak_up.load_dialog(n_id, clicker) + yl_speak_up.speak_to[pname].dialog = yl_speak_up.load_dialog(n_id, player) -- is this player explicitly allowed to edit this npc? if(yl_speak_up.speak_to[pname].dialog