From a2e98a26aaf39dee1201bfb6658eaa89d7439be4 Mon Sep 17 00:00:00 2001 From: Terje Date: Sat, 14 Dec 2024 02:47:38 +0100 Subject: [PATCH] Bench: 24875852 --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index dfe60356..2f870da6 100644 --- a/src/search.c +++ b/src/search.c @@ -172,7 +172,7 @@ static int Quiescence(Thread *thread, Stack *ss, int alpha, int beta) { while ((move = NextMove(&mp))) { // Avoid pruning until at least one move avoids a terminal loss score - if (bestScore <= -TBWIN_IN_MAX) goto search; + if (bestScore <= -TBWIN_IN_MAX || futility <= -TBWIN_IN_MAX) goto search; // Only try moves the movepicker deems good if (mp.stage > NOISY_GOOD) break;