X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=f47e601bfaa9651db0cfe55fe40ab20ad7352b96;hp=c98a53dac207e915bf1c691edbfca43ba73706f2;hb=a6c5f60caaa834dcc755aafb464c12f7f5d52567;hpb=4ede49cd850392f28bc9da9537c111d2c3f0b297 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; }