diff --git a/src/search.cpp b/src/search.cpp index c98a53da..f47e601b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1454,7 +1454,7 @@ moves_loop: // When in check and at SpNode search starts from here | (attacks_bb(m2to, occ) & pos.pieces(color_of(pc), QUEEN, BISHOP)); // Verify attackers are triggered by our move and not already existing - if (xray && (xray ^ (xray & pos.attacks_from(m2to)))) + if (xray && (xray & ~pos.attacks_from(m2to))) // Unlikely xray return true; }