(improve): Fix unsafe use of opt_DEFENSE_INFRA as array subscript.

This commit is contained in:
Markus Armbruster 2006-05-20 11:04:00 +00:00
parent d5eee2175b
commit 499e19f97b

View file

@ -71,7 +71,7 @@ improve(void)
int wanted;
if (!(p = getstarg(player->argp[1],
prompt[opt_DEFENSE_INFRA], buf)) || !*p)
prompt[!!opt_DEFENSE_INFRA], buf)) || !*p)
return RET_SYN;
if (!strncmp(p, "ro", 2))
type = INT_ROAD;