config: updated project config
This commit is contained in:
parent
016654da2f
commit
cc37d834fe
3 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue