]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Change depth - 1 to newDepth
[stockfish] / src / search.cpp
index fa479c4b8272b9896081c0f07c7da86e06a15797..7d567b8ab71058d9b6c78b2424142da9f568ec16 100644 (file)
@@ -1045,7 +1045,7 @@ moves_loop:  // When in check, search starts here
                 && tte->depth() >= depth - 3)
             {
                 Value singularBeta  = ttValue - (64 + 57 * (ss->ttPv && !PvNode)) * depth / 64;
-                Depth singularDepth = (depth - 1) / 2;
+                Depth singularDepth = newDepth / 2;
 
                 ss->excludedMove = move;
                 value =