X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fthread.cpp;h=202768c863cc9e1f6ca7d0f38de44fb9f1674a43;hb=b36d39de3d61b8f31c11d85233631aafaf760ee1;hp=ca1a7c852731d11b530b10ccea2d42ea5d5573e6;hpb=5a88c5bb9b3e5ee431ac85abb8981b1571b68b2d;p=stockfish diff --git a/src/thread.cpp b/src/thread.cpp index ca1a7c85..202768c8 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -60,7 +60,6 @@ void Thread::clear() { counterMoves.fill(MOVE_NONE); mainHistory.fill(0); captureHistory.fill(0); - previousDepth = 0; for (bool inCheck : { false, true }) for (StatsType c : { NoCaptures, Captures }) @@ -161,6 +160,7 @@ void ThreadPool::clear() { main()->bestPreviousScore = VALUE_INFINITE; main()->bestPreviousAverageScore = VALUE_INFINITE; main()->previousTimeReduction = 1.0; + main()->complexity = 1.0; }