]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Do not refresh TT in qsearch
[stockfish] / src / search.cpp
index b2b2414ae68eb47f6d2de2101e5bcc198d7f9aa7..ec884b3c145afc20dbcdff887e056ba671552827 100644 (file)
@@ -1301,6 +1301,9 @@ namespace {
 
     if (tte && ok_to_use_TT(tte, depth, beta, ply))
     {
+        // Refresh tte entry to avoid aging
+        TT.store(posKey, tte->value(), tte->type(), tte->depth(), ttMove);
+
         ss[ply].currentMove = ttMove; // Can be MOVE_NONE
         return value_from_tt(tte->value(), ply);
     }