From c977410a41f1be7ad18dd618aab2a64b305c1297 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Tue, 30 Aug 2022 20:17:00 +0200 Subject: [PATCH] Small bugfix Fixed a bug where frames incorrectly remove their own events in parent frames --- Basalt/Frame.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Basalt/Frame.lua b/Basalt/Frame.lua index 643ac1e..04dfa67 100644 --- a/Basalt/Frame.lua +++ b/Basalt/Frame.lua @@ -138,7 +138,7 @@ return function(name, parent, pTerm, basalt) if (value == obj) then table.remove(events[a][c], key) if(self.parent~=nil)then - if(tableCount(events[event])<=0)then + if(tableCount(events[a])<=0)then self.parent:removeEvent(a, self) end end