mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-18 07:05:29 +01:00
Constrained medit/oedit/qedit/redit/sedit/trigedit to the IDXTYPE range.
This commit is contained in:
parent
d0e08785f5
commit
2ed922cdb8
6 changed files with 31 additions and 2 deletions
|
|
@ -93,6 +93,11 @@ ACMD(do_oasis_sedit)
|
|||
if (number == NOWHERE)
|
||||
number = atoi(buf1);
|
||||
|
||||
if (number < IDXTYPE_MIN || number > IDXTYPE_MAX) {
|
||||
send_to_char(ch, "That shop VNUM can't exist.\r\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Check that the shop isn't already being edited. */
|
||||
for (d = descriptor_list; d; d = d->next) {
|
||||
if (STATE(d) == CON_SEDIT) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue