Skip to content

Commit

Permalink
Merge branch 'dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Corppet authored Apr 14, 2023
2 parents 354a863 + bed593a commit aba8a3c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public NurikabeBoard(int size) {

@Override
public NurikabeCell getCell(int x, int y) {
if (y * dimension.width + x >= puzzleElements.size() || x >= dimension.width ||
y >= dimension.height || x < 0 || y < 0) {
return null;
}
return (NurikabeCell) super.getCell(x, y);
}

Expand Down

0 comments on commit aba8a3c

Please sign in to comment.