Re: [Code]

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 10/01/97


On Wed, 1 Oct 1997, Chris Proctor wrote:

>affect_from_char (ch=0x8269f30, type=7) at handler.c:336
>336         if (hjp->type == type)

   if (!ch)
     return;
>  for (hjp = ch->affected; hjp; hjp = hjp->next)
     if (hjp && hjp->type == type)
>    if (hjp->type == type)
>        affect_remove(ch, hjp);

In your situation, hjp is NULL and taking hjp->type naturally crashes...
(excluding a memory overrun elsewhere in the code in which case it could be
something not even related to this)
--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | 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/08/00 PST