Skip to content

Commit

Permalink
Correct accidental global declaration in BitPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeneliason committed Mar 28, 2023
1 parent a93ed75 commit 1c9f359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BitPattern.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1c9f359

Please sign in to comment.