]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Revert "Count passed pawns in asymmetry measure"
[stockfish] / src / search.cpp
index 23608f7a379570ff72d27a42816ead695e82e7f5..f132e3ecc03307269030299443dcf931233b5108 100644 (file)
@@ -758,6 +758,7 @@ namespace {
         search<NT>(pos, ss, alpha, beta, d, cutNode, true);
 
         tte = TT.probe(posKey, ttHit);
+        ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE;
         ttMove = ttHit ? tte->move() : MOVE_NONE;
     }
 
@@ -1164,8 +1165,8 @@ moves_loop: // When in check, search starts from here
     // Transposition table lookup
     posKey = pos.key();
     tte = TT.probe(posKey, ttHit);
-    ttMove = ttHit ? tte->move() : MOVE_NONE;
     ttValue = ttHit ? value_from_tt(tte->value(), ss->ply) : VALUE_NONE;
+    ttMove = ttHit ? tte->move() : MOVE_NONE;
 
     if (  !PvNode
         && ttHit