From e5d5c4beada63f016fdeb1f32a1937e1a71ff89b Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 26 Oct 2009 20:40:00 -0700 Subject: [PATCH] another bug in VriantSwitch: an unitialized board was printed. Must have been there a long time, but this time it crashed WinBoard. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)); -- 1.7.0.4