replaced std::sort with std::stable_sort in MoveOrder

This commit is contained in:
rektdie committed 2025-03-03 19:51:25 +01:00
1 parent b4c1f7f0f8
commit 5952d8ade4
1 file changed
+1 -1
+1 -1
View File
@@ -51,7 +51,7 @@ static void SortMoves(Board &board) {
}
// Sort indices based on scores
std::sort(indices.begin(), indices.begin() + board.currentMoveIndex,
std::stable_sort(indices.begin(), indices.begin() + board.currentMoveIndex,
[&scores](int a, int b) {
return scores[a] > scores[b];
});