X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=f49c23aed6571dcc8a6d024f3f2b813fb08a3290;hb=008d59512ac38e1e4a2f7880fe4e07b902845bb0;hp=5508478862fe1a37f75cd09e9169db8e3836e0dc;hpb=c17a657b045d4dc720c8c36558fe649a1c3f4a05;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 55084788..f49c23ae 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -546,7 +546,7 @@ namespace { assert(0 < depth && depth < MAX_PLY); assert(!(PvNode && cutNode)); - Move pv[MAX_PLY+1], capturesSearched[32], quietsSearched[64]; + Move pv[MAX_PLY+1], capturesSearched[32], quietsSearched[32]; StateInfo st; ASSERT_ALIGNED(&st, Eval::NNUE::CacheLineSize); @@ -1328,12 +1328,12 @@ moves_loop: // When in check, search starts here // If the move is worse than some previously searched move, remember it, to update its stats later - if (move != bestMove) + if (move != bestMove && moveCount <= 32) { - if (capture && captureCount < 32) + if (capture) capturesSearched[captureCount++] = move; - else if (!capture && quietCount < 64) + else quietsSearched[quietCount++] = move; } }