From 52530fc8b69d65eb477a2e4f2f20ef1b32b7722b Mon Sep 17 00:00:00 2001 From: Terje Date: Fri, 15 Nov 2024 21:03:54 +0100 Subject: [PATCH] Bench: 25382999 --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index c587d395..76081f51 100644 --- a/src/search.c +++ b/src/search.c @@ -311,7 +311,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth ss->staticEval = eval = CorrectEval(thread, eval); // Use ttScore as eval if it is more informative - if (ttScore != NOSCORE && TTScoreIsMoreInformative(ttBound, ttScore, eval)) + if (abs(ttScore) < TBWIN_IN_MAX && TTScoreIsMoreInformative(ttBound, ttScore, eval)) eval = ttScore; // Improving if not in check, and current eval is higher than 2 plies ago