From: H.G.Muller Date: Mon, 28 Mar 2016 20:24:20 +0000 (+0200) Subject: Fix New Shuffle Game dialog X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=ee45962ef4d6584447559057db779d9f68232fbc Fix New Shuffle Game dialog The insertion of the Fischer-castling option had broken the operation of the 'randomize' and 'pick fixed' buttons. --- diff --git a/dialogs.c b/dialogs.c index 0216d64..84ac446 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1607,10 +1607,10 @@ static Option shuffleOptions[] = { static void SetRandom (int n) { - int r = n==2 ? -1 : random() & (1<<30)-1; + int r = n==3 ? -1 : random() & (1<<30)-1; char buf[MSG_SIZ]; snprintf(buf, MSG_SIZ, "%d", r); - SetWidgetText(&shuffleOptions[1], buf, TransientDlg); + SetWidgetText(&shuffleOptions[2], buf, TransientDlg); SetWidgetState(&shuffleOptions[0], True); }