From 0ad26072163aad811558abee5dd6d9ec1735a3f7 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 11 Dec 2014 01:35:03 +0100 Subject: [PATCH] Store the ECO before and not after the move. --- apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apply.c b/apply.c index c58e16d..b4379b9 100644 --- a/apply.c +++ b/apply.c @@ -878,6 +878,7 @@ play_moves(Game *game_details, Board *board, Move *moves, unsigned max_depth, board->hash_value, game_details->cumulative_hash_value, half_moves); + next_move->eco = eco_match; if(entry != NULL){ /* Consider keeping the match. * Could try to avoid spurious matches which become @@ -903,7 +904,6 @@ play_moves(Game *game_details, Board *board, Move *moves, unsigned max_depth, eco_match = entry; } } - next_move->eco = eco_match; } next_move = next_move->next; } -- 2.39.2