fixed error in event.ignore that slipped in waaay back in 1fd375f, fixes #44

This commit is contained in:
Florian Nücke 2014-01-01 17:58:45 +01:00
parent ad4359f2dd
commit 7e3b157aca

View File

@ -76,7 +76,7 @@ function event.ignore(name, callback)
if listeners[name][i] == callback then
table.remove(listeners[name], i)
if #listeners[name] == 0 then
list.listeners[name] = nil
listeners[name] = nil
end
return true
end