X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=e235c3fc615733c6e68ae879381c6b48ba7bba2e;hp=f1ab80f29294e20401fb93e9736b3b2b679668de;hb=034a2b04f2fc1017721b4f3fc12895e5f8a190bd;hpb=6ea5dc294cb33d56d42e543d9fc4d5b7405e2b4e diff --git a/src/search.cpp b/src/search.cpp index f1ab80f2..e235c3fc 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1351,7 +1351,7 @@ moves_loop: // When in check and at SpNode search starts from here return true; // Second's destination is defended by the first move's piece - Bitboard m1att = pos.attacks_from(pos.piece_on(m1to), m1to, pos.pieces() ^ m2from); + Bitboard m1att = attacks_bb(pos.piece_on(m1to), m1to, pos.pieces() ^ m2from); if (m1att & m2to) return true; @@ -1395,7 +1395,7 @@ moves_loop: // When in check and at SpNode search starts from here Piece pc = pos.piece_on(m1from); // The moved piece attacks the square 'tto' ? - if (pos.attacks_from(pc, m1to, occ) & m2to) + if (attacks_bb(pc, m1to, occ) & m2to) return true; // Scan for possible X-ray attackers behind the moved piece