diff --git a/src/search.cpp b/src/search.cpp index 1396a817d..6a17e1624 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1006,7 +1006,7 @@ moves_loop: // When in check, search starts here movedPiece = pos.moved_piece(move); givesCheck = pos.gives_check(move); - (ss + 1)->quietMoveStreak = (!capture && !givesCheck) ? (ss->quietMoveStreak + 1) : 0; + (ss + 1)->quietMoveStreak = capture ? 0 : (ss->quietMoveStreak + 1); // Calculate new depth for this move newDepth = depth - 1;