Fix dressed-letter IDs in VariantMen PGN Tag
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 8 Mar 2016 19:36:56 +0000 (20:36 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 8 Mar 2016 19:36:56 +0000 (20:36 +0100)
Due to sign extension the ID suffxes would never be printed.

moves.c

diff --git a/moves.c b/moves.c
index d0fc45e..843593d 100644 (file)
--- a/moves.c
+++ b/moves.c
@@ -206,8 +206,8 @@ CollectPieceDescriptors ()
     // but suppress black pieces that are the same as their white counterpart
     ChessSquare p;
     static char buf[MSG_SIZ], s[2];
-    char *m, c, d, *pieceName = defaultName;
-    int len;
+    char *m, *pieceName = defaultName;
+    int len, c, d;
     *buf = NULLCHAR;
     if(!pieceDefs) return "";
     if(gameInfo.variant == VariantChu) return ""; // for now don't do this for Chu Shogi