From 08298543a2d15bdd7a31ee1cf328c6a5c470117b Mon Sep 17 00:00:00 2001 From: Terje Date: Sat, 9 Sep 2023 12:35:31 +0200 Subject: [PATCH] Bench: 18937531 --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 939b5cc8..85665816 100644 --- a/src/search.c +++ b/src/search.c @@ -310,7 +310,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth if (cutnode && depth >= 7 && !ttMove) depth--; - if (ttHit && ttScore <= alpha && ttBound != BOUND_LOWER && ttDepth > depth - 3) + if (ttHit && ttScore <= alpha && ttBound != BOUND_LOWER && ttDepth >= depth) depth--; // Skip pruning in check, pv nodes, early iterations, when proving singularity, looking for terminal scores, or after a null move