Fix Shogi Knight-demotion bug
[capablanca.git] / lasker-2.2.3 / src / gameproc.c
index ec6918c..8398499 100644 (file)
@@ -416,7 +416,7 @@ static int was_promoted(struct game *g, int f, int r)
       if (g->moveList[i].piecePromotionTo) {
        switch(g->moveList[i].moveString[0]) { // [HGM] return original piece type rather than just TRUE
           case 'P': return PAWN;
-          case 'N': return KNIGHT;
+          case 'N': return HONORABLEHORSE; // !!! this is Shogi, so no KNIGHT !!!
           case 'B': return BISHOP;
           case 'R': return ROOK;
           case 'L': return LANCE;