Fix origin and zdone for invalid country argument
Invalid country argument was interpreted as (natid)-1, which is normally 255. Harmless as long as this is less than MAXNOC (99). Wrong anyway.
This commit is contained in:
parent
da59e02706
commit
4646dfbf80
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ orig(void)
|
||||||
char *p;
|
char *p;
|
||||||
coord x, y;
|
coord x, y;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
natid cnum;
|
int cnum;
|
||||||
struct natstr *np;
|
struct natstr *np;
|
||||||
|
|
||||||
p = getstarg(player->argp[1], "New origin (sector or country) : ", buf);
|
p = getstarg(player->argp[1], "New origin (sector or country) : ", buf);
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
int
|
int
|
||||||
zdon(void)
|
zdon(void)
|
||||||
{
|
{
|
||||||
natid whichcnum;
|
int whichcnum;
|
||||||
struct natstr *natp;
|
struct natstr *natp;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue