TRIGEDIT crashes mud?

From: Kevin Dethlefs (Demortes2004@aol.com)
Date: 02/22/03


Everytime someone goes and uses TRIGEDIT, the mud crashes.

#0  0x8088c01 in real_trigger (vnum=4509) at dg_scripts.c:3227
#1  0x80a63a4 in do_oasis (ch=0x8109128, argument=0xbffffa08 " 4509",
cmd=556,
    subcmd=7) at oasis.c:324
#2  0x809cc81 in command_interpreter (ch=0x8109128,
    argument=0xbffffa00 "trigedit 4509") at interpreter.c:636
#3  0x806f5e5 in game_loop (mother_desc=3) at comm.c:857
#4  0x806eda8 in init_game (port=3625) at comm.c:479
#5  0x806ea29 in main (argc=3, argv=0xbffffd54) at comm.c:336


Thats the BT from GDB.

Line 3227 in dg_scripts.c:
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;

3227: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;
  }
}


OK OK, thats the whole function with 3227 marked.

Any help is appreciated. Thanks.

Kevin Dethlefs

--
Dnal has yet again returned! If you wish to work for Dnal please visit
games.spunge.org port 3625. Builders please go to Mogile or myself.

--
   +---------------------------------------------------------------+
   | 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/26/03 PDT