From 4646dfbf802f23a4f362cc9b1dd674c8e50a7714 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 18 Jul 2008 18:34:17 -0400 Subject: [PATCH] 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. --- src/lib/commands/orig.c | 2 +- src/lib/commands/zdon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/orig.c b/src/lib/commands/orig.c index d8c91f76..120bb823 100644 --- a/src/lib/commands/orig.c +++ b/src/lib/commands/orig.c @@ -43,7 +43,7 @@ orig(void) char *p; coord x, y; char buf[1024]; - natid cnum; + int cnum; struct natstr *np; p = getstarg(player->argp[1], "New origin (sector or country) : ", buf); diff --git a/src/lib/commands/zdon.c b/src/lib/commands/zdon.c index 577a2887..c439f8d8 100644 --- a/src/lib/commands/zdon.c +++ b/src/lib/commands/zdon.c @@ -59,7 +59,7 @@ int zdon(void) { - natid whichcnum; + int whichcnum; struct natstr *natp; char *p;