]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Subtract the margin from the value returned by ProbCut
[stockfish] / src / search.cpp
index 6214fb5b39b564d12cf47699a2adb74c378c095d..baf819687c5561cf0993f9fc5fdde982e4b0d262 100644 (file)
@@ -897,7 +897,7 @@ namespace {
                 {
                     // Save ProbCut data into transposition table
                     tte->save(posKey, value_to_tt(value, ss->ply), ss->ttPv, BOUND_LOWER, depth - 3, move, ss->staticEval);
-                    return value;
+                    return value - (probCutBeta - beta);
                 }
             }