From 2f54b33a362ea2821c8b1669ad92857268eb85b1 Mon Sep 17 00:00:00 2001 From: Terje Date: Wed, 11 Dec 2024 15:03:30 +0100 Subject: [PATCH] Bench: 26520741 --- src/search.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 8dd94e0c..41d992e1 100644 --- a/src/search.c +++ b/src/search.c @@ -400,8 +400,12 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth TakeMove(pos); // Cut if the reduced depth search beats the threshold, terminal scores are exact - if (score >= probCutBeta) + if (score >= probCutBeta) { + + StoreTTEntry(tte, pos->key, move, ScoreToTT(score, ss->ply), unadjustedEval, depth-3, BOUND_LOWER); + return score < TBWIN_IN_MAX ? score - 160 : score; + } } }