aboutsummaryrefslogtreecommitdiffstats
path: root/util/iterators.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/iterators.lua')
-rw-r--r--util/iterators.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iterators.lua b/util/iterators.lua
index bcda48b4..4b429163 100644
--- a/util/iterators.lua
+++ b/util/iterators.lua
@@ -75,7 +75,7 @@ function it.count(f, s, var)
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