From b7f06bb374f8124619ed399afc3cc6e5cbc808fb Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 16 Dec 2014 01:41:43 +0100 Subject: [PATCH] Kill games with null moves. --- output.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/output.c b/output.c index 9c57e31..7a1b325 100644 --- a/output.c +++ b/output.c @@ -1180,6 +1180,10 @@ output_sesse_bin_game(Game current_game,FILE *outputfile, // Find the result. Skip games with no result. for (move = current_game.moves; move != NULL; move = move->next) { + if (move->class == NULL_MOVE) { + // Skip games with null moves. + return; + } if (move->terminating_result) { result = move->terminating_result; } -- 2.39.2