diff --git a/src/search.c b/src/search.c index d0704f93..63c9e9a2 100644 --- a/src/search.c +++ b/src/search.c @@ -552,7 +552,7 @@ static int AlphaBeta(Thread *thread, Stack *ss, int alpha, int beta, Depth depth r += 2 * cutnode; // Depth after reductions, avoiding going straight to quiescence as well as extending - Depth lmrDepth = CLAMP(newDepth - r, 1, newDepth + allNode); + Depth lmrDepth = CLAMP(newDepth - r, 1, newDepth + !allNode); score = -AlphaBeta(thread, ss+1, -alpha-1, -alpha, lmrDepth, true);