Fix bomb to fail on empty <pin|strat> argument
Before, the planes flew empty, and oopsed (since commit feaa2dd9
,
v4.3.12) or complained (before) over the target instead of bombing it.
This commit is contained in:
parent
7bbd3fcd89
commit
e031a8a052
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ bomb(void)
|
|||
getstarg(player->argp[2], "escort(s)? ", buf)))
|
||||
pr("No escorts...\n");
|
||||
p = getstarg(player->argp[3], "pinpoint, or strategic? ", buf);
|
||||
if (!p)
|
||||
if (!p || !*p)
|
||||
return RET_SYN;
|
||||
mission = *p;
|
||||
if (strchr("ps", mission) == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue