replaced std::sort with std::stable_sort in MoveOrder
This commit is contained in:
1 parent
b4c1f7f0f8
commit
5952d8ade4
1 file changed
+1
-1
+1
-1
@@ -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];
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user