Skip to content

Commit

Permalink
Merge pull request #194 from jpd236/ctrl-b-crash
Browse files Browse the repository at this point in the history
Fix crash in nextblank with void cells.
  • Loading branch information
mrichards42 authored Aug 13, 2022
2 parents c0b49fe + 039560d commit 0ee6ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/nextblank/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local function find_next_blank(square)
return grid:FindSquare(
square or grid:First(),
function(s)
return s:IsBlank()
return s:IsBlank() and s:IsWhite()
end
)
end
Expand Down

0 comments on commit 0ee6ed7

Please sign in to comment.