From 8db4b0af792173aac101eb463926ae901cc17975 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Fri, 10 Sep 2021 11:24:24 +0200 Subject: [PATCH] Fix the build (this is why you make PRs kids) --- lib/Board.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Board.cpp b/lib/Board.cpp index 0de0e91..ef8dc5d 100644 --- a/lib/Board.cpp +++ b/lib/Board.cpp @@ -54,7 +54,7 @@ constexpr std::array, 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]); }