From: Steinar H. Gunderson Date: Thu, 11 Dec 2014 00:35:03 +0000 (+0100) Subject: Store the ECO before and not after the move. X-Git-Url: https://git.sesse.net/?p=pgn-extract;a=commitdiff_plain;h=0ad26072163aad811558abee5dd6d9ec1735a3f7 Store the ECO before and not after the move. --- 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; }