From b41c7cb49ab2482d484a87d18a330f10db4e5cb4 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 7 Mar 2013 17:48:45 +0100 Subject: [PATCH] Fix spurious popup after batch-mode Analyze Game A batch analysis of games was not properly terminated, because the game mode was tested after it had already been changed. No oldGameMode is tested in stead. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 9689ab9..0c555f9 100644 --- a/backend.c +++ b/backend.c @@ -12043,7 +12043,7 @@ LoadGame (FILE *f, int gameNumber, char *title, int useList) gn = 1; } else { - if(gameMode == AnalyzeFile && appData.loadGameIndex == -1) + if(oldGameMode == AnalyzeFile && appData.loadGameIndex == -1) appData.loadGameIndex = 0; // [HGM] suppress error message if we reach file end after auto-stepping analysis else DisplayError(_("Game number out of range"), 0); -- 1.7.0.4