Constrained medit/oedit/qedit/redit/sedit/trigedit to the IDXTYPE range.

This commit is contained in:
wyld-sw 2016-02-12 12:04:35 -05:00 committed by wyld-sw
parent d0e08785f5
commit 2ed922cdb8
6 changed files with 31 additions and 2 deletions

View file

@ -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) {