Re: [CODE] [DG Scripts] Pl-2 bug

From: Andy Hubbard (hub@LEICESTER.AC.UK)
Date: 01/16/98


>
> Anyway, my MUD crashes exactly 10 seconds after a player connects (timed it
> three times), making me assume that it has something to do with circle
> being awake (most likely the events).  Here is my GDB backtrace output.
>
> #0  write_to_output (txt=0x80bc47c "The slave leaves south.\r\n", t=0x0)
>     at comm.c:1106

t=0x0  should smack in the face straight away,  in this case it is
descriptor data, I belive mobs have no desc ??  the fix ...

insert at the top of write_to_output

 if (t == NULL)
   return;

> 1106      if (t->bufptr < 0)
>
> 1101      int size;
> 1102
> 1103      size = strlen(txt);
> 1104
>

Enjoy, acts rock, fire the scripts,... mobs don't trigger their own
speech scripts anymore, cool!

Andy

telnet://winnt.cmht.le.ac.uk:4000


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST