X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=cd344b6c31f5b8c028ba5be8d4fe44e7e0d31032;hb=2e25ba964f3e2faf1a328b3de269367c3bba8c58;hp=e0bb52f23216e122641d9722c2f4a725d0cb7955;hpb=1a2052a0c7bf59ec549cf7f6ed11e5114f7b15c6;p=xboard.git diff --git a/backend.c b/backend.c index e0bb52f..cd344b6 100644 --- a/backend.c +++ b/backend.c @@ -5426,7 +5426,7 @@ char * PvToSAN(char *pv) { static char buf[10*MSG_SIZ]; - int i, k=0, savedEnd=endPV; + int i, k=0, savedEnd=endPV, saveFMM = forwardMostMove; *buf = NULLCHAR; if(forwardMostMove < endPV) PushInner(forwardMostMove, endPV); ParsePV(pv, FALSE, 2); // this appends PV to game, suppressing any display of it @@ -5436,7 +5436,7 @@ PvToSAN(char *pv) k += strlen(buf+k); } snprintf(buf+k, 10*MSG_SIZ-k, "%s", lastParseAttempt); // if we ran into stuff that could not be parsed, print it verbatim - if(forwardMostMove < savedEnd) PopInner(0); + if(forwardMostMove < savedEnd) { PopInner(0); forwardMostMove = saveFMM; } // PopInner would set fmm to endPV! endPV = savedEnd; return buf; }