From b22116453a1dc33844e7263331496d7897b1f402 Mon Sep 17 00:00:00 2001 From: Moez Jellouli <37274752+MJZ1977@users.noreply.github.com> Date: Tue, 1 Jan 2019 20:30:13 +0100 Subject: [PATCH] correction --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 9d12064a465..ea0fb0cfc15 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -835,7 +835,7 @@ namespace { && depth >= 5 * ONE_PLY && abs(beta) < VALUE_MATE_IN_MAX_PLY) { - Value raisedBeta = std::min(beta + std::min(148 - 48 * improving + pos.non_pawn_material()/128, 252) + Value raisedBeta = std::min(beta + std::min(148 + pos.non_pawn_material()/128, 252) - 48 * improving , VALUE_INFINITE); MovePicker mp(pos, ttMove, raisedBeta - ss->staticEval, &thisThread->captureHistory); int probCutCount = 0;