X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=c676bd6d62ca05d46f5851ca5211f661f6a50f7b;hb=a0afe32d16554ff3b5c74f34ae56400f35759edf;hp=b319dff5fe27ed54f98a28171a648479b975d872;hpb=9b5b9ec9a6a3a0e46ac00f58976887560948a7e2;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index b319dff5..c676bd6d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -944,7 +944,7 @@ namespace { } ss->ttPv = ttPv; } - + // Step 11. If the position is not in TT, decrease depth by 2 if ( PvNode && depth >= 6 @@ -1964,7 +1964,7 @@ void Tablebases::rank_root_moves(Position& pos, Search::RootMoves& rootMoves) { if (RootInTB) { // Sort moves according to TB rank - std::sort(rootMoves.begin(), rootMoves.end(), + std::stable_sort(rootMoves.begin(), rootMoves.end(), [](const RootMove &a, const RootMove &b) { return a.tbRank > b.tbRank; } ); // Probe during search only if DTZ is not available and we are winning