X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=7349e96b48d9c2f93372eeabe9ad2c56bc9095cb;hp=920310da713d1fbacc11c9ad60334c49a82b5aa0;hb=0049d3f337b6f3a66a0;hpb=e0cae4bef8031a709c93eed1eb2754aa8ad806f0 diff --git a/src/search.cpp b/src/search.cpp index 920310da..7349e96b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -531,7 +531,7 @@ namespace { assert((alpha == beta - 1) || PvNode); assert(depth > DEPTH_ZERO); - Move movesSearched[MAX_MOVES]; + Move movesSearched[64]; StateInfo st; const TTEntry *tte; Key posKey; @@ -944,7 +944,7 @@ split_point_start: // At split points actual search starts from here } ss->currentMove = move; - if (!SpNode && !captureOrPromotion) + if (!SpNode && !captureOrPromotion && playedMoveCount < 64) movesSearched[playedMoveCount++] = move; // Step 14. Make the move