X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=55b2e92c883fcae9cf6b0362c102a174f5dd3127;hp=acd5d1da4ef7793f7ba02668b5907c2a461ff75e;hb=6845397c5cbec26f3a0442091e6a48d356719c3c;hpb=f74f42b2982e25e180417948771843e8bb6bd4b7 diff --git a/src/search.cpp b/src/search.cpp index acd5d1da..55b2e92c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2182,7 +2182,7 @@ namespace { // Case 4: The destination square for m2 is attacked by the moving piece in m1 p = pos.piece_on(t1); - if (bit_is_set(pos.piece_attacks(p, t1), t2)) + if (bit_is_set(pos.piece_attacks_from(p, t1), t2)) return true; // Case 5: Discovered check, checking piece is the piece moved in m1