]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Do not initialize ss->reduction to zero in the beginning of node
[stockfish] / src / search.cpp
index 7249a113862f87ebe8cd6563f0bb3fa08e937ddb..0f5e6907b5f173de954483812068d4d6b70f08ca 100644 (file)
@@ -363,7 +363,6 @@ void init_search() {
 void SearchStack::init() {
 
   currentMove = threatMove = bestMove = MOVE_NONE;
-  reduction = Depth(0);
 }
 
 // SearchStack::initKillers() initializes killers for a search stack entry
@@ -2212,6 +2211,7 @@ namespace {
     {
         ss->excludedMove = MOVE_NONE;
         ss->skipNullMove = false;
+        ss->reduction = Depth(0);
 
         if (i < 3)
         {