diff --git a/src/search.cpp b/src/search.cpp index bb0156c5..3eab34be 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1235,6 +1235,9 @@ moves_loop: // When in check, search starts here 846 * int(PieceValue[pos.captured_piece()]) / 128 + thisThread->captureHistory[movedPiece][move.to_sq()][type_of(pos.captured_piece())] - 4822; + else if (ss->inCheck) + ss->statScore = thisThread->mainHistory[us][move.from_to()] + + (*contHist[0])[movedPiece][move.to_sq()] - 2771; else ss->statScore = 2 * thisThread->mainHistory[us][move.from_to()] + (*contHist[0])[movedPiece][move.to_sq()]