From a4dfbeaf8e977b278fe88a308068cf482e053a61 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 22 Mar 2016 10:36:09 +0100 Subject: [PATCH] Forget piece redefinitions before loading game The effect of a VariantMen tag in a previous game of the same file was also applied to later games that did not have such a tag. --- backend.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index 3eea34d..e7cf5b2 100644 --- a/backend.c +++ b/backend.c @@ -12928,7 +12928,7 @@ LoadGame (FILE *f, int gameNumber, char *title, int useList) char buf[MSG_SIZ]; int gn = gameNumber; ListGame *lg = NULL; - int numPGNTags = 0; + int numPGNTags = 0, i; int err, pos = -1; GameMode oldGameMode; VariantClass v, oldVariant = gameInfo.variant; /* [HGM] PGNvariant */ @@ -13117,6 +13117,8 @@ LoadGame (FILE *f, int gameNumber, char *title, int useList) if (appData.debugMode) fprintf(debugFP, "Parsed game start '%s' (%d)\n", yy_text, (int) cm); + for(i=0; i