From ab088da33c97acddbdb040230c13621b84700466 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 3 Feb 2025 13:47:17 +0100 Subject: [PATCH] removed useless this-> --- cpp/src/board.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/board.cpp b/cpp/src/board.cpp index cb7f11b..f45c62d 100644 --- a/cpp/src/board.cpp +++ b/cpp/src/board.cpp @@ -265,7 +265,7 @@ Board Board::make_move(Move move) const { int8_t Board::get_king_of(int8_t colour) const { for (int i = 0; i < 64; i++) - if (this->squares[i] == (colour | Piece::King)) + if (squares[i] == (colour | Piece::King)) return i; throw std::domain_error( "Apparently there no kings of the such color in this board"