another bug in VriantSwitch: an unitialized board was printed.
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 27 Oct 2009 03:40:00 +0000 (20:40 -0700)
committerArun Persaud <arun@nubati.net>
Tue, 27 Oct 2009 03:40:00 +0000 (20:40 -0700)
Must have been there a long time, but this time it crashed WinBoard.

backend.c

index 0db2b76..f1d3eb4 100755 (executable)
--- a/backend.c
+++ b/backend.c
@@ -3578,7 +3578,7 @@ ParseBoard12(string)
        timeIncrement = increment * 1000;
        movesPerSession = 0;
        gameInfo.timeControl = TimeControlTagValue();
-        VariantSwitch(board, StringToVariant(gameInfo.event) );
+        VariantSwitch(boards[currentMove], StringToVariant(gameInfo.event) );
   if (appData.debugMode) {
     fprintf(debugFP, "ParseBoard says variant = '%s'\n", gameInfo.event);
     fprintf(debugFP, "recognized as %s\n", VariantName(gameInfo.variant));