X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=6516192d3700cc4dea05ba26f396cc09a6e37594;hp=8e9720c5cf75f26e11c2d2ccdd6f98b4eba034aa;hb=4c57cf0ead29536504ca452b876d350a8e2edbdc;hpb=9afa1d73306cb98e95acec5daf4efd65e592ceff diff --git a/src/thread.cpp b/src/thread.cpp index 8e9720c5..6516192d 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -147,7 +147,7 @@ void ThreadPool::clear() { main()->callsCnt = 0; main()->previousScore = VALUE_INFINITE; - main()->previousTimeReduction = 1; + main()->previousTimeReduction = 1.0; } /// ThreadPool::start_thinking() wakes up main thread waiting in idle_loop() and @@ -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;