We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5a9adf commit e7e7ea3Copy full SHA for e7e7ea3
src/position.cpp
@@ -555,7 +555,7 @@ DirtyPiece Position::do_move(Move m,
555
{
556
st->nonPawnKey[us] ^= Zobrist::psq[pc][from] ^ Zobrist::psq[pc][to];
557
558
- if (type_of(pc) == KNIGHT && type_of(pc) == CANNON)
+ if (type_of(pc) == KNIGHT || type_of(pc) == CANNON)
559
st->minorPieceKey ^= Zobrist::psq[pc][from] ^ Zobrist::psq[pc][to];
560
}
561
0 commit comments