X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=a36601bffc48f6965652694e886747c4a29a838a;hp=c98c3334edb97f0a406b62fa864d6c06e4156b2a;hb=c2c0e6b07de96c1fc39528b613fb3c9f93a8d7dc;hpb=c94145b65c21bdca71f1a8248dee8d19d974f555 diff --git a/src/search.cpp b/src/search.cpp index c98c3334..a36601bf 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -549,6 +549,7 @@ namespace { assert(-VALUE_INFINITE <= alpha && alpha < beta && beta <= VALUE_INFINITE); assert(PvNode || (alpha == beta - 1)); assert(DEPTH_ZERO < depth && depth < DEPTH_MAX); + assert(!(PvNode && cutNode)); Move pv[MAX_PLY+1], quietsSearched[64]; StateInfo st; @@ -963,7 +964,7 @@ moves_loop: // When in check search starts from here + (fmh2 ? (*fmh2)[moved_piece][to_sq(move)] : VALUE_ZERO); // Increase reduction for cut nodes - if (!PvNode && cutNode) + if (cutNode) r += 2 * ONE_PLY; // Decrease reduction for moves that escape a capture. Filter out