X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=94f7beeea3d16b1cb63f9798a1b72d979c33448f;hb=b2918562aae79be5117ea7e9e01af1ad17afbd97;hp=6bd4418d5daed9d96f238e5d1d1e7361916b6c02;hpb=4d6bd700a90b76e2b34fbfba71e6f0fb61c556ae;p=xboard.git diff --git a/backend.c b/backend.c index 6bd4418..94f7bee 100644 --- a/backend.c +++ b/backend.c @@ -6161,7 +6161,8 @@ FinishMove(moveType, fromX, fromY, toX, toY, promoChar) the previous line in Analysis Mode */ if ((gameMode == AnalyzeMode || gameMode == EditGame) && currentMove < forwardMostMove) { - PushTail(currentMove, forwardMostMove); // [HGM] vari: save tail of game + if(appData.variations) PushTail(currentMove, forwardMostMove); // [HGM] vari: save tail of game + else forwardMostMove = currentMove; } /* If we need the chess program but it's dead, restart it */