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:
Markus Armbruster 2008-07-15 08:15:07 -04:00
parent 7bbd3fcd89
commit e031a8a052

View file

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