X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=bfade6d09b52b4b89b1588d1483166ef1b898131;hb=52f55179a8d0b24f5410cdd9d29559e4f6408156;hp=8dc1f85d9e51a30194f48a3c96d2170aa467259a;hpb=bbdf9e47376d5df2dd3e2a3498c04c9f27b88cec;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 8dc1f85d..bfade6d0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -394,7 +394,7 @@ namespace { } // Sort the PV lines searched so far and update the GUI - sort(RootMoves.begin(), RootMoves.begin() + PVIdx); + sort(RootMoves.begin(), RootMoves.begin() + PVIdx + 1); sync_cout << uci_pv(pos, depth, alpha, beta) << sync_endl; }