From 6e9ced38abe48ef15310ccc0d1fa93530e217cca Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 12 May 2016 18:45:30 +0100 Subject: util.events: Fix comparison of event_name with nil instead of false (fixes #554) --- util/events.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/events.lua b/util/events.lua index 073d2a60..e2943e44 100644 --- a/util/events.lua +++ b/util/events.lua @@ -131,7 +131,7 @@ local function new() end end if #w == 0 then - if event_name == nil then + if event_name == false then global_wrappers = nil; else wrappers[event_name] = nil; -- cgit v1.2.3