X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=a4f78524d57585c59b6af641ba345a26d530cf02;hb=d82d80274f7fb7c07dcf12ba873bb4c842279171;hp=7f06f2e800f721f4d07e56c57ab1d0de8179f24c;hpb=ac0b7cea34e9ebbf980ba6e30844889a70e354fd;p=xboard.git diff --git a/backend.c b/backend.c index 7f06f2e..a4f7852 100644 --- a/backend.c +++ b/backend.c @@ -5556,6 +5556,7 @@ ParseOneMove (char *move, int moveNum, ChessMove *moveType, int *fromX, int *fro *toX = currentMoveString[2] - AAA; *toY = currentMoveString[3] - ONE; *promoChar = currentMoveString[4]; + if(*promoChar == ';') *promoChar = NULLCHAR; if (*fromX < BOARD_LEFT || *fromX >= BOARD_RGHT || *fromY < 0 || *fromY >= BOARD_HEIGHT || *toX < BOARD_LEFT || *toX >= BOARD_RGHT || *toY < 0 || *toY >= BOARD_HEIGHT) { if (appData.debugMode) {