fixed loading of saved games via command line
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 2 Oct 2009 23:41:12 +0000 (16:41 -0700)
committerArun Persaud <arun@nubati.net>
Fri, 2 Oct 2009 23:41:12 +0000 (16:41 -0700)
the variables forwardMostMove and backwardMostMove where set to zero at the wrong place.

backend.c

index 9e70440..6cba815 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -4557,7 +4557,6 @@ InitPosition(redraw)
     oldh = gameInfo.holdingsWidth,
     oldv = gameInfo.variant;
 
-    currentMove = forwardMostMove = backwardMostMove = 0;
     if(appData.icsActive) shuffleOpenings = FALSE; // [HGM] shuffle: in ICS mode, only shuffle on ICS request
 
     /* [AS] Initialize pv info list [HGM] and game status */
@@ -8281,6 +8280,7 @@ Reset(redraw, init)
     gameMode = BeginningOfGame;
     ModeHighlight();
     if(appData.icsActive) gameInfo.variant = VariantNormal;
+    currentMove = forwardMostMove = backwardMostMove = 0;
     InitPosition(redraw);
     for (i = 0; i < MAX_MOVES; i++) {
        if (commentList[i] != NULL) {