From 1f45b979b1ce50e62c5e9057e686f7744ffd1695 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 4 May 2009 19:06:31 +0100 Subject: util.multitable: No globals today, thank you. Fixes missing table entries and a potential traceback --- util/multitable.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/multitable.lua b/util/multitable.lua index c0bb2205..d1858d8f 100644 --- a/util/multitable.lua +++ b/util/multitable.lua @@ -56,7 +56,7 @@ local function r(t, n, _end, ...) return; end if k then - v = t[k]; + local v = t[k]; if v then r(v, n+1, _end, ...); if not next(v) then @@ -96,7 +96,7 @@ local function s(t, n, results, _end, ...) return; end if k then - v = t[k]; + local v = t[k]; if v then s(v, n+1, results, _end, ...); end -- cgit v1.2.3