diff --git a/src/search.cpp b/src/search.cpp index 7f29f771..5e9cd463 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -357,6 +357,9 @@ void Thread::search() { mainThread->iterValue[i] = mainThread->bestPreviousScore; } + std::copy(&lowPlyHistory[2][0], &lowPlyHistory.back().back() + 1, &lowPlyHistory[0][0]); + std::fill(&lowPlyHistory[MAX_LPH - 2][0], &lowPlyHistory.back().back() + 1, 0); + size_t multiPV = Options["MultiPV"]; // Pick integer skill levels, but non-deterministically round up or down diff --git a/src/thread.cpp b/src/thread.cpp index 88331f06..2e0c216e 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -212,7 +212,6 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states, th->rootDepth = th->completedDepth = 0; th->rootMoves = rootMoves; th->rootPos.set(pos.fen(), pos.is_chess960(), &setupStates->back(), th); - th->lowPlyHistory.fill(0); } setupStates->back() = tmp;