Changeset

5583:78dbece77ce8

util.iterators: Small fix for variable scoping issue
author Matthew Wild <mwild1@gmail.com>
date Fri, 17 May 2013 08:42:21 +0100
parents 5582:7bc2009fdd0c
children 5584:1d841117117c
files util/iterators.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/iterators.lua	Fri May 17 08:31:03 2013 +0100
+++ b/util/iterators.lua	Fri May 17 08:42:21 2013 +0100
@@ -75,7 +75,7 @@
 	local x = 0;
 	
 	while true do
-		local var = f(s, var);
+		var = f(s, var);
 	        if var == nil then break; end
 		x = x + 1;
 	end