]> git.sesse.net Git - stockfish/commitdiff
Do not refresh TT in qsearch
authorMarco Costalba <mcostalba@gmail.com>
Sat, 1 May 2010 05:12:04 +0000 (06:12 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 2 May 2010 06:50:19 +0000 (07:50 +0100)
Almost no change and simplifies a bit the code.

After 961 games at 1+0
Mod vs Orig +156 =650 -146  +4 ELO

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index 1f980fbb78038d6cf098e1b3cafaa37761bfd808..ec884b3c145afc20dbcdff887e056ba671552827 100644 (file)
@@ -1627,9 +1627,6 @@ namespace {
     {
         assert(tte->type() != VALUE_TYPE_EVAL);
 
-        // Refresh tte entry to avoid aging
-        TT.store(pos.get_key(), tte->value(), tte->type(), tte->depth(), ttMove);
-
         ss[ply].currentMove = ttMove; // Can be MOVE_NONE
         return value_from_tt(tte->value(), ply);
     }