]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Eliminate ONE_PLY
[stockfish] / src / thread.cpp
index f7445f98ca4cbbb7b9bfab48acfff7251a5a96ed..19687aad7c439469aecd06b90dd1b26bddc4cbfd 100644 (file)
@@ -148,6 +148,9 @@ void ThreadPool::set(size_t requested) {
 
       // Reallocate the hash with the new threadpool size
       TT.resize(Options["Hash"]);
+
+      // Init thread number dependent search params.
+      Search::init();
   }
 }
 
@@ -201,7 +204,7 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states,
   for (Thread* th : *this)
   {
       th->shuffleExts = th->nodes = th->tbHits = th->nmpMinPly = 0;
-      th->rootDepth = th->completedDepth = DEPTH_ZERO;
+      th->rootDepth = th->completedDepth = 0;
       th->rootMoves = rootMoves;
       th->rootPos.set(pos.fen(), pos.is_chess960(), &setupStates->back(), th);
   }