summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 5fa9f8c..deb7d96 100644
--- a/src/main.c
+++ b/src/main.c
@@ -525,9 +525,7 @@ Move find_best_move(int* board, int color, int depth, int alpha, int beta, int*
? find_best_move(board, 1 - color, depth + 1, alpha, beta, metrics, hash, transposition_table, zobrist_seed).value
: compute_score(board, available_moves_count, color);
- if (depth < MAX_DEPTH) {
- transposition_table[move_hash % TRANSPOSITION_TABLE_SIZE] = move.value;
- }
+ transposition_table[move_hash % TRANSPOSITION_TABLE_SIZE] = move.value;
reverse_move(move, captured_piece, board);