(coun_cmd): Fix return value when country doesn't exist. No
functional change, as caller treats old and fixed value the same.
This commit is contained in:
parent
65cbb148b1
commit
976cdfbf9e
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ coun_cmd(void)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
if (natbyname(player->argp[1], &cnum) < 0) {
|
if (natbyname(player->argp[1], &cnum) < 0) {
|
||||||
pr_id(player, C_CMDERR, "country %s does not exist\n", player->argp[1]);
|
pr_id(player, C_CMDERR, "country %s does not exist\n", player->argp[1]);
|
||||||
return 0;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
player->cnum = cnum;
|
player->cnum = cnum;
|
||||||
player->validated = 0;
|
player->validated = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue