X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=moves.c;h=015f5f263f2c78e8c64855af908cfc6f866c15dc;hb=c172f0cc52bcf9d4433149de82290c2941136180;hp=bcaef30286cbd4fd2f47c43e6716c7d4a76840e2;hpb=94d2b2b896207fac048806e05c8a114297b1a513;p=xboard.git diff --git a/moves.c b/moves.c index bcaef30..015f5f2 100644 --- a/moves.c +++ b/moves.c @@ -135,7 +135,7 @@ PieceToNumber (ChessSquare p) /* [HGM] holdings: count piece type, ignoring non int i=0; ChessSquare start = (int)p >= (int)BlackPawn ? BlackPawn : WhitePawn; - while(start++ != p) if(pieceToChar[(int)start-1] != '.') i++; + while(start++ != p) if(pieceToChar[start-1] != '.' && pieceToChar[start-1] != '+') i++; return i; }