X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;fp=src%2Fsearch.cpp;h=a6c93b43550722e5c4584816497b1768d3b3ce4d;hp=e8ca5c5896d3302edf467b5cedfc11519fb169cd;hb=a6b5ba1b6404ce8aec8a2be8b7354dcb89cfda3f;hpb=20484ccdd5876deee4138d8badea4ef44b73341f diff --git a/src/search.cpp b/src/search.cpp index e8ca5c58..a6c93b43 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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;