util.events: Fix comparison of event_name with nil instead of false (fixes #554)

This commit is contained in:
Matthew Wild 2016-05-12 18:45:30 +01:00
parent 47fb0705f6
commit c3d3e85ce8

View file

@ -131,7 +131,7 @@ local function new()
end end
end end
if #w == 0 then if #w == 0 then
if event_name == nil then if event_name == false then
global_wrappers = nil; global_wrappers = nil;
else else
wrappers[event_name] = nil; wrappers[event_name] = nil;