X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=ec884b3c145afc20dbcdff887e056ba671552827;hp=b2b2414ae68eb47f6d2de2101e5bcc198d7f9aa7;hb=80f5ca88f6eaead0c5460c4bc13c1c7d9477c2be;hpb=b2c1e15698d6c834fa6a9d975c6841e915a7a77b diff --git a/src/search.cpp b/src/search.cpp index b2b2414a..ec884b3c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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); }