]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Small simplification in history pruning.
[stockfish] / src / search.cpp
index 429db9a5b28d4d40beee59ffeff974f4fb4ae534..10844746ccc88de74362ddf30d65c4dbb5896280 100644 (file)
@@ -1021,8 +1021,8 @@ moves_loop: // When in check, search starts here
                             + (*contHist[3])[movedPiece][to_sq(move)];
 
               // Continuation history based pruning (~2 Elo)
-              if (   lmrDepth < 5
-                  && history < -3792 * (depth - 1))
+              if (   lmrDepth < 6
+                  && history < -3792 * depth)
                   continue;
 
               history += 2 * thisThread->mainHistory[us][from_to(move)];