Fix ICS move-list header mistaken for null moves
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 20 Aug 2011 20:21:40 +0000 (22:21 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sat, 20 Aug 2011 20:21:40 +0000 (22:21 +0200)
backend.c

index 26ebe3c..79614cc 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -8918,6 +8918,7 @@ ParseGameHistory(game)
            break;
          case WhiteDrop:
          case BlackDrop:
+           if(currentMoveString[0] == '@') continue; // no null moves in ICS mode!
            fromX = moveType == WhiteDrop ?
              (int) CharToPiece(ToUpper(currentMoveString[0])) :
            (int) CharToPiece(ToLower(currentMoveString[0]));