diff --git a/src/search.cpp b/src/search.cpp index 435b7206..50f3a01b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1085,6 +1085,7 @@ moves_loop: // When in check, search starts from here else { assert(value >= beta); // Fail high + ss->statScore = std::max(ss->statScore, 0); break; } }