]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix TT write in MultiPV case.
[stockfish] / src / search.cpp
index 3f860ac5e5b9d073e93ab6f1f476a6a49e9c9eff..a32ff4b6b2b209744951d2345a3bf3553b19cb66 100644 (file)
@@ -1339,7 +1339,7 @@ moves_loop: // When in check, search starts from here
     if (PvNode)
         bestValue = std::min(bestValue, maxValue);
 
-    if (!excludedMove)
+    if (!excludedMove && !(rootNode && thisThread->pvIdx))
         tte->save(posKey, value_to_tt(bestValue, ss->ply), ttPv,
                   bestValue >= beta ? BOUND_LOWER :
                   PvNode && bestMove ? BOUND_EXACT : BOUND_UPPER,