(natargp): Only return countries in use. Unused countries could lead
to confusing output and were useless except perhaps for the edit command.
This commit is contained in:
parent
ad05ff70a1
commit
1b9641d6d1
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ natargp(char *arg, char *prompt)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
np = getnatp(n);
|
np = getnatp(n);
|
||||||
if (!np) {
|
if (!np || np->nat_stat == STAT_UNUSED) {
|
||||||
pr("Country '%s' doesn't exist.\n", arg);
|
pr("Country '%s' doesn't exist.\n", arg);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue