]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Increase reduction in case of stable best move
[stockfish] / src / search.cpp
index e825fce7522b8f15bf3535bdebffefc57ecd4133..cdbccb4c0abbc395f27465a33e6675ba133817d6 100644 (file)
@@ -1188,7 +1188,7 @@ moves_loop: // When in check, search starts from here
               r -= 2;
 
           // Increase reduction at root and non-PV nodes when the best move does not change frequently
-          if ((rootNode || !PvNode) && depth > 10 && thisThread->bestMoveChanges <= 2)
+          if ((rootNode || !PvNode) && thisThread->rootDepth > 10 && thisThread->bestMoveChanges <= 2)
               r++;
 
           // More reductions for late moves if position was not in previous PV