From 830b18c2aa8e70ff464a609b0f626c963a804ac6 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sun, 6 Jun 2021 00:19:25 +0200 Subject: [PATCH] create trades table soon enough --- functions.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.lua b/functions.lua index 55be52f..0f523b9 100644 --- a/functions.lua +++ b/functions.lua @@ -2917,6 +2917,10 @@ function yl_speak_up.talk(self, clicker) yl_speak_up.speak_to[pname].obj = self.object yl_speak_up.show_fs(clicker, "talk", {n_id = n_id}) + + if(not(dialog.trades)) then + dialog.trades = {} + end end -- ###