Fix origin command not to prompt twice for its argument
Broken in commitb69173ee
, v4.3.0. (cherry picked from commit27c3466aa5
)
This commit is contained in:
parent
fbbf1193ba
commit
efd41a823a
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ orig(void)
|
|||
struct natstr *np;
|
||||
|
||||
p = getstarg(player->argp[1], "New origin (sector or country) : ", buf);
|
||||
if (!p)
|
||||
if (!p || !*p)
|
||||
return RET_SYN;
|
||||
if (!isalpha(*p) && strchr(p, ',')) {
|
||||
/* sector */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue