]> git.sesse.net Git - stockfish/blobdiff - src/thread.cpp
Tweak history initialization
[stockfish] / src / thread.cpp
index c834fa9f9dff0bd1ce23bd2f72f3c20c5c1ece01..9ce408e059e02ac119d567a1eda7377f96110f7c 100644 (file)
@@ -61,15 +61,12 @@ void Thread::clear() {
   mainHistory.fill(0);
   captureHistory.fill(0);
   previousDepth = 0;
-  
+
   for (bool inCheck : { false, true })
       for (StatsType c : { NoCaptures, Captures })
-      {
           for (auto& to : continuationHistory[inCheck][c])
-                for (auto& h : to)
-                      h->fill(-71);
-          continuationHistory[inCheck][c][NO_PIECE][0]->fill(Search::CounterMovePruneThreshold - 1);
-      }
+              for (auto& h : to)
+                  h->fill(-71);
 }