summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index bfe2017..f8f47e2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -516,7 +516,7 @@ int get_piece_raw_value(int piece) {
}
int compare_moves(const void* a, const void* b) {
- return ((Move*)a)->value - ((Move*)b)->value;
+ return ((Move*)b)->value - ((Move*)a)->value;
}
void sort_moves(Move* moves, int moves_count, int* board) {