X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=58d693cf2a52547c4fc5f1140436293bd9fcda2d;hp=eb360869b53380510513ff134938f0ba515e5cb8;hb=b53239d6410cfc87bf454370671390b04879ef05;hpb=043a469f83b4c81f94ab991029b4cd49fb05452e diff --git a/src/thread.cpp b/src/thread.cpp index eb360869..58d693cf 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -58,6 +58,7 @@ void Thread::clear() { counterMoves.fill(MOVE_NONE); mainHistory.fill(0); + captureHistory.fill(0); for (auto& to : contHistory) for (auto& h : to) @@ -186,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;