}
gameInfo.variant = v;
- appData.variant = VariantName(v);
+ ASSIGN(appData.variant, VariantName(v));
shuffleOpenings = FALSE; /* [HGM] shuffle: possible shuffle reset when we switch */
startedFromPositionFile = FALSE; /* [HGM] loadPos: no longer valid in new variant */
appData.NrFiles = filesTmp;
appData.holdingsSize = sizeTmp;
appData.pieceToCharTable = NULL;
- appData.pieceNickNames = "";
- appData.colorNickNames = "";
- appData.men = "";
+ ASSIGN(appData.pieceNickNames, "");
+ ASSIGN(appData.colorNickNames, "");
+ ASSIGN(appData.men, "");
PopDown(TransientDlg);
Reset(True, True);
return;
}\r
\r
gameInfo.variant = v;\r
- appData.variant = VariantName(v);\r
+ ASSIGN(appData.variant, VariantName(v));\r
\r
appData.NrFiles = (int) GetDlgItemInt(hDlg, IDC_Files, NULL, FALSE );\r
appData.NrRanks = (int) GetDlgItemInt(hDlg, IDC_Ranks, NULL, FALSE );\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
+ ASSIGN(appData.pieceNickNames, "");\r
+ ASSIGN(appData.colorNickNames, "");\r
+ ASSIGN(appData.men, "");\r
Reset(TRUE, TRUE);\r
\r
return TRUE;\r