X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=97beb58009eb2feb855e9b725c0290606581e92f;hp=8e9720c5cf75f26e11c2d2ccdd6f98b4eba034aa;hb=1b6459195c82395d861cddf3f2056ed1c9a3bd5b;hpb=aa88261a8f509fdabfe235042de1c1ea7a39a399;ds=sidebyside diff --git a/src/thread.cpp b/src/thread.cpp index 8e9720c5..97beb580 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -187,12 +187,10 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states, for (Thread* th : *this) { - th->nodes = th->tbHits = 0; + th->nodes = th->tbHits = th->nmp_ply = th->nmp_odd = 0; th->rootDepth = th->completedDepth = DEPTH_ZERO; th->rootMoves = rootMoves; th->rootPos.set(pos.fen(), pos.is_chess960(), &setupStates->back(), th); - th->nmp_ply = 0; - th->pair = -1; } setupStates->back() = tmp;