util.iterators: Fix use of incorrect variable accidentally introduced in a9ef93bc81d9

This commit is contained in:
Matthew Wild 2016-03-21 21:04:14 +00:00
parent c00adb21f4
commit 6873a62f1e

View file

@ -135,8 +135,8 @@ function it.filter(filter, f, s, var)
return function (_s, _var)
local ret;
repeat ret = pack(f(_s, _var));
var = ret[1];
until var == nil or filter(unpack(ret, 1, ret.n));
_var = ret[1];
until _var == nil or filter(unpack(ret, 1, ret.n));
return unpack(ret, 1, ret.n);
end, s, var;
end