aboutsummaryrefslogtreecommitdiffstats
path: root/util/events.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/events.lua')
-rw-r--r--util/events.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/events.lua b/util/events.lua
index 78700d65..0bf0ddcb 100644
--- a/util/events.lua
+++ b/util/events.lua
@@ -127,7 +127,7 @@ local function new()
w = wrappers[event_name];
end
if not w then return; end
- for i = #w, 1 do
+ for i = #w, 1, -1 do
if w[i] == wrapper then
t_remove(w, i);
end