]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Fix output of PV lines with invalid scores #2439
[stockfish] / src / search.cpp
index e8ca5c5896d3302edf467b5cedfc11519fb169cd..a6c93b43550722e5c4584816497b1768d3b3ce4d 100644 (file)
@@ -1741,7 +1741,7 @@ string UCI::pv(const Position& pos, Depth depth, Value alpha, Value beta) {
 
   for (size_t i = 0; i < multiPV; ++i)
   {
-      bool updated = (i <= pvIdx && rootMoves[i].score != -VALUE_INFINITE);
+      bool updated = rootMoves[i].score != -VALUE_INFINITE;
 
       if (depth == 1 && !updated)
           continue;