X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=2f1237a3b0c6b5b02b27636d9c3d78d02f31c84d;hp=d360ad318325921e8e76f83f153caf3190c559fc;hb=6ed81f09ffa513f0938c1a16fa4edd55e552c178;hpb=44c320a572188b5875291103edb344c584b91d19 diff --git a/src/thread.cpp b/src/thread.cpp index d360ad31..2f1237a3 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -192,7 +192,7 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states, for (Thread* th : *this) { th->nodes = th->tbHits = th->nmpMinPly = 0; - th->completedDepth = DEPTH_ZERO; + th->rootDepth = th->completedDepth = DEPTH_ZERO; th->rootMoves = rootMoves; th->rootPos.set(pos.fen(), pos.is_chess960(), &setupStates->back(), th); }