X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=8dc1f85d9e51a30194f48a3c96d2170aa467259a;hp=76cc8e8d37d1caefdf0995955d6035e058932349;hb=bbdf9e47376d5df2dd3e2a3498c04c9f27b88cec;hpb=94ecdef8ac7855e7a44efd7890c7e8f8d5819397 diff --git a/src/search.cpp b/src/search.cpp index 76cc8e8d..8dc1f85d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1391,7 +1391,7 @@ split_point_start: // At split points actual search starts from here // Case 4: The destination square for m2 is defended by the moving piece in m1 p1 = pos.piece_on(t1); - if (pos.attacks_from(p1, t1) & t2) + if (pos.attacks_from(p1, t1, pos.pieces() ^ f2) & t2) return true; // Case 5: Discovered check, checking piece is the piece moved in m1