X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=97b70b8fefd7ffcea1b96a21890ab0330522d66c;hb=660da1ca7b4c2c03dce03d14ef3496d9fb4aead2;hp=9949e2aeb23477f4cb1eaa511ed89c95c464a04a;hpb=4f0fecad8a0f5258114f63f0ac0c905a54d65219;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 9949e2ae..97b70b8f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1427,6 +1427,7 @@ moves_loop: // When in check, search starts here Value bestValue, value, ttValue, futilityValue, futilityBase; bool pvHit, givesCheck, capture; int moveCount; + Color us = pos.side_to_move(); // Step 1. Initialize node if (PvNode) @@ -1537,7 +1538,7 @@ moves_loop: // When in check, search starts here moveCount++; // Step 6. Pruning. - if (bestValue > VALUE_TB_LOSS_IN_MAX_PLY) + if (bestValue > VALUE_TB_LOSS_IN_MAX_PLY && pos.non_pawn_material(us)) { // Futility pruning and moveCount pruning (~10 Elo) if ( !givesCheck