]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Don't overwrite exsisting TT with null search value
[stockfish] / src / search.cpp
index 043c433a648cba38fb0bab2be01cf3a45b2d2385..4c7e1e463dc553ae53c2efee850c215fb5f24223 100644 (file)
@@ -1395,7 +1395,9 @@ namespace {
             {
                 assert(value_to_tt(nullValue, ply) == nullValue);
 
-                TT.store(posKey, nullValue, VALUE_TYPE_NS_LO, depth, MOVE_NONE);
+                if (!tte)
+                    TT.store(posKey, nullValue, VALUE_TYPE_NS_LO, depth, MOVE_NONE);
+
                 return nullValue;
             }
         } else {