config: updated project config

This commit is contained in:
A.M. Rowsell 2025-08-06 09:29:41 -04:00
commit cc37d834fe
Signed by untrusted user who does not match committer: amr
GPG key ID: E0879EDBDB0CA7B1
3 changed files with 9 additions and 2 deletions

View file

@ -58,7 +58,7 @@ std::vector<Move> Rook::getLegalMoves(const Square &from, const Board &board) co
if (!target) {
moveList.push_back({from,
targetSquare});
} else if (target->getColour() != this->getColour()) {
} else if (target && target->getColour() != this->getColour()) {
moveList.push_back({from,
targetSquare});
break;