From: H.G.Muller Date: Fri, 20 Feb 2015 19:27:45 +0000 (+0100) Subject: Fix spurious promo-suffixes on drop moves X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=b24ce05727f9719f669f300b7e7e5606aa83eed9 Fix spurious promo-suffixes on drop moves The promo-suffix from the previous move would be left on drop moves, and could even be set to the engine. --- diff --git a/parser.c b/parser.c index c5b79fa..d60b833 100644 --- a/parser.c +++ b/parser.c @@ -267,6 +267,7 @@ NextUnit (char **p) fromY = DROP_RANK; fromX = cl.pieceIn; currentMoveString[0] = piece; currentMoveString[1] = '@'; + currentMoveString[4] = NULLCHAR; return LegalityTest(boards[yyboardindex], PosFlags(yyboardindex)&~F_MANDATORY_CAPTURE, fromY, fromX, toY, toX, NULLCHAR); } if(type[1] == NOTHING && type[0] != NOTHING) { // there is a disambiguator