(improve): Fix unsafe use of opt_DEFENSE_INFRA as array subscript.
This commit is contained in:
parent
d5eee2175b
commit
499e19f97b
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ improve(void)
|
||||||
int wanted;
|
int wanted;
|
||||||
|
|
||||||
if (!(p = getstarg(player->argp[1],
|
if (!(p = getstarg(player->argp[1],
|
||||||
prompt[opt_DEFENSE_INFRA], buf)) || !*p)
|
prompt[!!opt_DEFENSE_INFRA], buf)) || !*p)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
if (!strncmp(p, "ro", 2))
|
if (!strncmp(p, "ro", 2))
|
||||||
type = INT_ROAD;
|
type = INT_ROAD;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue