Re: [CODE][BUGGY CODE :P][OBJPURGE ------

From: Ron Cole (rcole@ezy.net)
Date: 01/13/99


>    for (i = object_list; i; i = i->next) {

Whenever you loop through a linked list, and there's a possbility of removing
an item from the list, you need to preserve the next pointer at the top of
the loop.  Look around in the code for examples of this, perhaps in the timer
code that destroys corpses.

Ron


     +------------------------------------------------------------+
     | 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 : 12/15/00 PST