]> git.sesse.net Git - pgn-extract/blobdiff - apply.c
Store the ECO before and not after the move.
[pgn-extract] / apply.c
diff --git a/apply.c b/apply.c
index bd7b4721e2467974ad26db29c97a05f2e0d31d9b..b4379b961fe021c246508006b2cd5dcfa262864f 100644 (file)
--- 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