]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simply reset StatScore to zero at beta cutoff
[stockfish] / src / search.cpp
index 025c1141c97546e6e98693877fad9afff26336d5..5fd016a6db59500df25c5e2122d9ea8845c08e7a 100644 (file)
@@ -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;
               }
           }