removed useless this->

This commit is contained in:
Karma Riuk 2025-02-03 13:47:17 +01:00
parent 31799cb0ec
commit ab088da33c

View File

@ -265,7 +265,7 @@ Board Board::make_move(Move move) const {
int8_t Board::get_king_of(int8_t colour) const { int8_t Board::get_king_of(int8_t colour) const {
for (int i = 0; i < 64; i++) for (int i = 0; i < 64; i++)
if (this->squares[i] == (colour | Piece::King)) if (squares[i] == (colour | Piece::King))
return i; return i;
throw std::domain_error( throw std::domain_error(
"Apparently there no kings of the such color in this board" "Apparently there no kings of the such color in this board"