X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=b31ed0c21c9cbfe080f96197c21c2695cfd0106f;hp=46e93d071e012ed2e0c0daa4f014638e7c538d48;hb=c3d2e6aba981ecc0caf82f81a1d44e8c4954e151;hpb=d490bb99734bd6e2f8a0a352d2f3f1ba264ece66 diff --git a/src/search.cpp b/src/search.cpp index 46e93d07..b31ed0c2 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -643,7 +643,7 @@ namespace { // Step 4a. Tablebase probe if (!rootNode && TB::Cardinality) { - int piecesCount = pos.count(WHITE) + pos.count(BLACK); + int piecesCount = pos.count(); if ( piecesCount <= TB::Cardinality && (piecesCount < TB::Cardinality || depth >= TB::ProbeDepth) @@ -900,7 +900,7 @@ moves_loop: // When in check search starts from here { if ( !captureOrPromotion && !givesCheck - && (!pos.advanced_pawn_push(move) || pos.non_pawn_material(WHITE) + pos.non_pawn_material(BLACK) >= 5000)) + && (!pos.advanced_pawn_push(move) || pos.non_pawn_material() >= 5000)) { // Move count based pruning if (moveCountPruning)