diff --git a/src/search.c b/src/search.c index 23a557b0..740eae1d 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 depth--; // Skip pruning in check, pv nodes, early iterations, when proving singularity, looking for terminal scores, or after a null move - if (inCheck || pvNode || !thread->doPruning || ss->excluded || abs(beta) >= TBWIN_IN_MAX || history(-1).move == NOMOVE) + if (inCheck || pvNode || !thread->doPruning || ss->excluded || abs(beta) >= TBWIN_IN_MAX || history(-1).move == NOMOVE || (ttMove && GetHistory(thread, ss, ttMove) < 0)) goto move_loop; // Reverse Futility Pruning