X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=58d693cf2a52547c4fc5f1140436293bd9fcda2d;hp=3f3f26cd63f4e6e6f354a1d26ff4fc25febc4640;hb=b53239d6410cfc87bf454370671390b04879ef05;hpb=83e829c9dc900dcb00d673417062f4193481ff36 diff --git a/src/thread.cpp b/src/thread.cpp index 3f3f26cd..58d693cf 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -187,6 +187,8 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states, 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;