From 53465a82cd9289367490e7de270b65d7c5871ca4 Mon Sep 17 00:00:00 2001 From: Bill Freist Date: Wed, 6 Nov 2024 13:25:26 -0800 Subject: [PATCH] Fix bad index in removevalues When the table.remove call from split into its own reverse iterating loop, the table.remove call was still using the `k` variable from the old loop rather than the new `i` index. --- src/base/bake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bake.lua b/src/base/bake.lua index 46e41262..07d04b53 100644 --- a/src/base/bake.lua +++ b/src/base/bake.lua @@ -166,7 +166,7 @@ for i = #tbl, 1, -1 do for _, pattern in ipairs(removes) do if pattern == tbl[i] then - table.remove(tbl, k) + table.remove(tbl, i) end end end