From 45369a0d3da2b7668358c49819a60443b90bc2a2 Mon Sep 17 00:00:00 2001 From: MaemiKozue <51482990+MaemiKozue@users.noreply.github.com> Date: Mon, 10 Jun 2019 15:31:51 +0200 Subject: [PATCH] Bugfix: clicking on some GUI elements was triggerring errors on the FD stats panel. --- maps/fish_defender/fish_defender.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maps/fish_defender/fish_defender.lua b/maps/fish_defender/fish_defender.lua index 2a8e2727..0a960aa4 100644 --- a/maps/fish_defender/fish_defender.lua +++ b/maps/fish_defender/fish_defender.lua @@ -139,6 +139,9 @@ local function add_fd_stats_button(player) end local function on_gui_click(event) + if not event.element.valid then + return + end if event.element.name ~= "fd-stats-button" then return end