Fix the build (this is why you make PRs kids)
This commit is contained in:
parent
453dd17d7c
commit
8db4b0af79
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ constexpr std::array<std::array<int, COLUMNS>, ROWS> board = {{
|
|||
// clang-format on
|
||||
|
||||
static Cell cellAtPosition(GridPosition point) {
|
||||
if (point.x < 0 || point.x >= COLUMNS || point.y < 0 || point.y >= ROWS)
|
||||
if (point.x >= COLUMNS || point.y >= ROWS)
|
||||
return Cell::wall;
|
||||
return Cell(board[point.y][point.x]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue