X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=5c265a690332ada9d2199df18b96a14904346b5d;hb=f667c02d582c1a09d2a2f5e0b048fdb13c072777;hp=88bbdee9706d05cc9d2445c21cb83f78064d811e;hpb=3536ccf4ea73a0157ef01ae42c72e5448543eb39;p=xboard.git diff --git a/moves.c b/moves.c index 88bbdee..5c265a6 100644 --- a/moves.c +++ b/moves.c @@ -2031,7 +2031,7 @@ Disambiguate (Board board, int flags, DisambiguateClosure *closure) GenLegal(board, flags|F_IGNORE_CHECK, DisambiguateCallback, (VOIDSTAR) closure, closure->pieceIn); if (closure->count == 0) { /* No, it's not even that */ - if(!appData.testLegality && closure->pieceIn != EmptySquare) { + if(!appData.testLegality && !pieceDefs && closure->pieceIn != EmptySquare) { int f, r; // if there is only a single piece of the requested type on the board, use that closure->rt = closure->rtIn, closure->ft = closure->ftIn; for(r=0; r