]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Fix rootComplexity calculation
[stockfish] / src / thread.cpp
index ca1a7c852731d11b530b10ccea2d42ea5d5573e6..202768c863cc9e1f6ca7d0f38de44fb9f1674a43 100644 (file)
@@ -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;
 }