From f64fa5bfb4d1d5a0fc4368fde67f8a3467cc6e60 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Sat, 19 Dec 2020 11:40:52 +0100 Subject: [PATCH] Fix modlib.table.process(tab, func) --- table.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/table.lua b/table.lua index f10b5e3..a551767 100644 --- a/table.lua +++ b/table.lua @@ -193,9 +193,9 @@ function map_keys(table, func) return new_tab end -function process(table, func) +function process(tab, func) local results = {} - for key, value in pairs(table) do + for key, value in pairs(tab) do table.insert(results, func(key,value)) end return results