Diff

util/events.lua @ 8759:9e839fb4541a

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Apr 2018 22:59:41 +0100
parent 8555:4f0f5b49bb03
parent 8758:c380a22d52d5
child 11058:c99afee1c548
line wrap: on
line diff
--- a/util/events.lua	Wed Apr 18 08:49:44 2018 +0100
+++ b/util/events.lua	Tue Apr 24 22:59:41 2018 +0100
@@ -127,7 +127,7 @@
 			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