From 3ea88b29e3bca35fc8810c1069ef6d35f4315bbd Mon Sep 17 00:00:00 2001 From: Caio Rodrigues Date: Wed, 28 Nov 2018 23:32:20 -0300 Subject: [PATCH] Fix the filter helper function --- Themes/_fallback/Scripts/01 Functional.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Themes/_fallback/Scripts/01 Functional.lua b/Themes/_fallback/Scripts/01 Functional.lua index 10f38a7d17..eb75fe67c2 100644 --- a/Themes/_fallback/Scripts/01 Functional.lua +++ b/Themes/_fallback/Scripts/01 Functional.lua @@ -22,7 +22,7 @@ function filter(func, tbl) local newtbl = {} for i, v in pairs(tbl) do if func(v) then - newtbl[i] = v + newtbl[#newtbl+1] = v end end return newtbl