From b24ce05727f9719f669f300b7e7e5606aa83eed9 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Fri, 20 Feb 2015 20:27:45 +0100 Subject: [PATCH] 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. --- parser.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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 -- 1.7.0.4