Re: [CODE] Arena affections crash

From: Melissa Jadwinski (meersan@earthlink.net)
Date: 09/01/00


Thanks so much for your help :)  I was going insane.  (I feel
much better after a couple hours of sleep.)

-- Melissa/meer@meersan.net

>   This is a fairly common mistake to make when cycling through a
>linked list: you have to take into account the possibility that the
>linked list may be modified.
>   A simple solution is to have an aff_next pointer.  If you look
>around the stock circle code, you'll see pointers with the same
>function.
>   For example, when the mud is going through the fighting list,
>and one of the members in it dies (and is extracted!), what happens
>when you try to access ch->next_fighting?  The same crash.


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



This archive was generated by hypermail 2b30 : 04/11/01 PDT