From cd29a44d8d56f581adb9008a6038ead823049c3e Mon Sep 17 00:00:00 2001 From: Terje Date: Fri, 13 Dec 2024 20:35:51 +0100 Subject: [PATCH] Bench: 25238160 --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index dfe60356..0f8c4481 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 || pos->nonPawnCount[sideToMove] == 0) goto search; // Only try moves the movepicker deems good if (mp.stage > NOISY_GOOD) break;