forked from kyonshi/grenzland-mud
Constrained medit/oedit/qedit/redit/sedit/trigedit to the IDXTYPE range.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user