mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-05 07:41:46 +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
|
|
@ -49,6 +49,11 @@ ACMD(do_oasis_trigedit)
|
|||
|
||||
number = atoi(argument);
|
||||
|
||||
if (number < IDXTYPE_MIN || number > IDXTYPE_MAX) {
|
||||
send_to_char(ch, "That trigger VNUM can't exist.\r\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Check that it isn't already being edited. */
|
||||
for (d = descriptor_list; d; d = d->next) {
|
||||
if (STATE(d) == CON_TRIGEDIT) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue