X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=ed8aa777bee172e77be003d7770994d7cb7b1088;hp=2b51a698b0de3e40c8208255251a92fc0149faf0;hb=fe1cbe26383085a44809d56493d29ce9c1815aa8;hpb=4e31c39a6494499ba85db0e0014bbbaac9770b1d diff --git a/src/search.cpp b/src/search.cpp index 2b51a698..ed8aa777 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1426,8 +1426,8 @@ split_point_start: // At split points actual search starts from here && ( PieceValue[MG][pos.piece_on(tfrom)] >= PieceValue[MG][pos.piece_on(tto)] || type_of(pos.piece_on(tfrom)) == KING)) { - // Update occupancy as if the piece is moving - Bitboard occ = pos.pieces() ^ mfrom ^ mto; + // Update occupancy as if the piece and the threat are moving + Bitboard occ = pos.pieces() ^ mfrom ^ mto ^ tfrom; Piece piece = pos.piece_on(mfrom); // The moved piece attacks the square 'tto' ?