On Mon, 20 Oct 1997, Sean Butler wrote: -+/* BEGIN REMOVE_FROM_LIST */ -+ if (obj == object_list) -+ object_list = obj->next; -+ else { -+ temp = object_list; -+ while (temp && (temp->next != obj)) -+ temp = temp->next; -+ if (temp) -+ temp->next = obj->next; -+ } -+/* END REMOVE_FROM_LIST */ You know, if object_list is an invalid pointer then so is temp; or that is, if object_list->next is invalid, so is temp->next. You might want to check out what object_list->next is, too. Just a random thought. -- Daniel Anton Koepke -:- dkoepke@california.com -:- [Nether] "Human language is a cracked kettle on which we beat out tunes for bears to dance to when all the while we want to move the stars to pity." -- Flaubert +------------------------------------------------------------+ | 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