(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:
Markus Armbruster 2005-05-27 16:24:55 +00:00
parent 65cbb148b1
commit 976cdfbf9e

View file

@ -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;