From 1c9f3598537e9b09169c2f10fcf90fc9cd6fc719 Mon Sep 17 00:00:00 2001 From: Eben Eliason Date: Tue, 28 Mar 2023 08:48:44 -0700 Subject: [PATCH] Correct accidental global declaration in BitPattern --- BitPattern.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BitPattern.lua b/BitPattern.lua index 79dc05b..724bab2 100644 --- a/BitPattern.lua +++ b/BitPattern.lua @@ -8,7 +8,7 @@ function BitPattern(binaryRows) local hasAlpha = #binaryRows == 16 - pattern = {} + local pattern = {} for i, binaryRow in ipairs(binaryRows) do if hasAlpha then pattern[i//2 + (i % 2 == 0 and 8 or 1)] = tonumber(binaryRow, 2)