From: H.G. Muller Date: Tue, 27 Oct 2009 03:40:00 +0000 (-0700) Subject: another bug in VriantSwitch: an unitialized board was printed. X-Git-Tag: v4.4.1~16 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e5d5c4beada63f016fdeb1f32a1937e1a71ff89b;p=xboard.git another bug in VriantSwitch: an unitialized board was printed. Must have been there a long time, but this time it crashed WinBoard. --- diff --git a/backend.c b/backend.c index 0db2b76..f1d3eb4 100755 --- 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));