Re: ch->next == ch... but not possible!

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/01/97


On Mon, 1 Dec 1997, Chris Jacobson wrote:

>the character is being removed from the character_list, flagged "purged",
>and put into another list.  A loop later on runs through character_list,
>and lo and behold, that character is STILL in character_list, flagged
>"purged", AND points back to itself.

Did you do:
REMOVE_FROM_LIST(ch, character_list, next);

Then:
ch->next = purged_list;
purged_list = ch;

--
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