Re: Whenever I try and use trigedit it crashes the mud.

From: Carlton Colter (carlton@COLTER.COM)
Date: 09/28/02


Peter found the fix and sent it to me.  I think it is a bug in Oasis 2.0.1,
anyways... here was the fix...

int real_trigger(int vnum)
{
  int bot = 0, mid;
  int top = top_of_trigt;

  /* perform binary search on trigger-table */
  for (;;) {
    mid = (bot + top) / 2;

+    if (bot >= top)
+      return (NOTHING);
    if (trig_index[mid]->vnum == vnum)
      return (mid);
-    if (bot >= top)
-      return (NOTHING);
    if (trig_index[mid]->vnum > vnum)
      top = mid - 1;
    else
      bot = mid + 1;
  }
}

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT