Fix origin command not to prompt twice for its argument

Broken in commit b69173ee, v4.3.0.
(cherry picked from commit 27c3466aa5)
This commit is contained in:
Markus Armbruster 2008-05-07 22:05:22 +02:00 committed by Markus Armbruster
parent 45a6b9a1d7
commit 5a2440c9d4

View file

@ -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 */