while((j = radioButton[i++]) != -2) {\r
if(j == -1) continue; // no menu button\r
v = VariantName(i-1); p = strstr(first.variants, v);\r
- EnableWindow(GetDlgItem(hDlg, j), appData.noChessProgram || p && (!*v || strlen(v) == strlen[p] || p[strlen[v]] == ','));\r
+ EnableWindow(GetDlgItem(hDlg, j), appData.noChessProgram || p && (!*v || strlen(v) == strlen(p) || p[strlen(v)] == ','));\r
}\r
*engineVariant = c;\r
for(i=0; i<15; i++) { // initialize engine-defined variants\r
shuffleOpenings = FALSE; /* [HGM] shuffle: possible shuffle reset when we switch */\r
startedFromPositionFile = FALSE; /* [HGM] loadPos: no longer valid in new variant */\r
appData.pieceToCharTable = NULL;\r
+ appData.men = "";\r
Reset(TRUE, TRUE);\r
\r
return TRUE;\r