]> git.sesse.net Git - pgn-extract/blobdiff - grammar.c
Store the current file number (with offset) in the binary output.
[pgn-extract] / grammar.c
index 133947ec0ef2a8670d412458dd3fe85f5dcdb31e..73bad6b563dd58cc4ca09b8649c89ba9ccf01884 100644 (file)
--- a/grammar.c
+++ b/grammar.c
@@ -827,6 +827,7 @@ DealWithGame(Move *move_list)
     current_game.moves_checked = FALSE;
     current_game.moves_ok = FALSE;
     current_game.error_ply = 0;
+    current_game.file_number = GlobalState.current_file_number;
     current_game.start_position = game_start_position;
   
     /* Determine whether or not this game is wanted, on the