diff --git a/src/search.cpp b/src/search.cpp index 025c1141..5fd016a6 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1117,7 +1117,7 @@ moves_loop: // When in check, search starts from here else { assert(value >= beta); // Fail high - ss->statScore = std::max(ss->statScore, 0); + ss->statScore = 0; break; } }