Added check for wrong start area in group setup
This commit is contained in:
parent
81c87eb1d6
commit
59de21db8b
@ -378,7 +378,10 @@ int EditFGrpRec(int Area)
|
|||||||
|
|
||||||
j = select_menu(34);
|
j = select_menu(34);
|
||||||
switch(j) {
|
switch(j) {
|
||||||
case 0:
|
case 0: if (!fgroup.StartArea && strlen(fgroup.AreaFile)) {
|
||||||
|
errmsg("Areas file defined but no BBS start area");
|
||||||
|
break;
|
||||||
|
}
|
||||||
crc1 = 0xffffffff;
|
crc1 = 0xffffffff;
|
||||||
crc1 = upd_crc32((char *)&fgroup, crc1, sizeof(fgroup));
|
crc1 = upd_crc32((char *)&fgroup, crc1, sizeof(fgroup));
|
||||||
if (crc != crc1) {
|
if (crc != crc1) {
|
||||||
|
@ -341,7 +341,10 @@ int EditMGrpRec(int Area)
|
|||||||
|
|
||||||
j = select_menu(18);
|
j = select_menu(18);
|
||||||
switch(j) {
|
switch(j) {
|
||||||
case 0:
|
case 0: if (!mgroup.StartArea && strlen(mgroup.AreaFile)) {
|
||||||
|
errmsg("Areas file defined but no BBS start area");
|
||||||
|
break;
|
||||||
|
}
|
||||||
crc1 = 0xffffffff;
|
crc1 = 0xffffffff;
|
||||||
crc1 = upd_crc32((char *)&mgroup, crc1, sizeof(mgroup));
|
crc1 = upd_crc32((char *)&mgroup, crc1, sizeof(mgroup));
|
||||||
if (crc != crc1) {
|
if (crc != crc1) {
|
||||||
|
Reference in New Issue
Block a user