Changeset

7310:66873c5e2061

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Mon, 21 Mar 2016 21:05:15 +0000
parents 7308:397f45107795 (current diff) 7309:471189342890 (diff)
children 7313:316ca5c15255
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/iterators.lua	Mon Mar 21 14:52:43 2016 +0100
+++ b/util/iterators.lua	Mon Mar 21 21:05:15 2016 +0000
@@ -135,8 +135,8 @@
 	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