From: H.G.Muller Date: Tue, 22 Mar 2016 09:36:09 +0000 (+0100) Subject: Forget piece redefinitions before loading game X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=a4dfbeaf8e977b278fe88a308068cf482e053a61 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. --- 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