diff --git a/src/lib/commands/setres.c b/src/lib/commands/setres.c index df5129f8..80b9bbbc 100644 --- a/src/lib/commands/setres.c +++ b/src/lib/commands/setres.c @@ -68,6 +68,7 @@ setres(void) amt = 100; if (amt < 0) amt = 0; + check_sect_ok(§); switch (char0) { case 'i': if (sect.sct_own != 0) diff --git a/src/lib/commands/setsect.c b/src/lib/commands/setsect.c index f157abc9..05397967 100644 --- a/src/lib/commands/setsect.c +++ b/src/lib/commands/setsect.c @@ -68,6 +68,7 @@ setsector(void) if (!p || !*p) return RET_SYN; amt = atoi(p); + check_sect_ok(§); switch (char0) { case 'i': current = sect.sct_min;