Fix the build (this is why you make PRs kids)

This commit is contained in:
Corentin Jabot 2021-09-10 11:24:24 +02:00
parent 453dd17d7c
commit 8db4b0af79

View file

@ -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]);
}