From cb7584022716f4407b4460754645e6af587e4730 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 2 Sep 2013 20:52:19 +0100 Subject: util.set: Fix :include() and :exclude() methods to iterate the input set correctly --- util/set.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/set.lua') diff --git a/util/set.lua b/util/set.lua index 7f45526e..b9e9ef21 100644 --- a/util/set.lua +++ b/util/set.lua @@ -91,13 +91,13 @@ function new(list) end function set:include(otherset) - for item in pairs(otherset) do + for item in otherset do items[item] = true; end end function set:exclude(otherset) - for item in pairs(otherset) do + for item in otherset do items[item] = nil; end end -- cgit v1.2.3