X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=092f7d73ed084be2a4a6881890d23a429e072523;hb=e5077dc11e8047eb8ce32a166a73e433a7e19b15;hp=daf40dec7cc05a9c1b6f336bf9b3bb062d4311e2;hpb=c9b24c3358a26afdec5e33e369b6192039562971;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index daf40dec..092f7d73 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1524,7 +1524,7 @@ split_point_start: // At split points actual search starts from here newAtt = pos.attacks_from(pc, to, occ); // Rule 1. Checks which give opponent's king at most one escape square are dangerous - b = kingAtt & ~pos.pieces_of_color(them) & ~newAtt & ~(1ULL << to); + b = kingAtt & ~pos.pieces(them) & ~newAtt & ~(1ULL << to); if (!(b && (b & (b - 1)))) return true; @@ -1535,7 +1535,7 @@ split_point_start: // At split points actual search starts from here return true; // Rule 3. Creating new double threats with checks - b = pos.pieces_of_color(them) & newAtt & ~oldAtt & ~(1ULL << ksq); + b = pos.pieces(them) & newAtt & ~oldAtt & ~(1ULL << ksq); while (b) {