Re: Help solving 'Reply' bug.

From: Gary Barnett (gbarnett@POLARNET.COM)
Date: 12/03/97


On Wednesday, December 03, 1997 1:35 AM, Ryan Gasper or Steven Arnold
[SMTP:dalamar@CYBERCOM.NET] wrote:
>         This has probably been touched upon in the past, but I haven't
> heard anyone mention it. When someone is replying to someone who has
> quit the game, the mud crashes. How do I check to make sure the person is
> still there?
>
Three options:

1) Don't store the pointer to the char that did the tell. Store the idnum
or a unique name

2) Check the descriptor list for a match to the pointer that you have stored.

3) When someone leaves the game, have the game check everyone's
reply pointers and remove references to self.

--Mallory

Neither sweat, nor blood, nor frustration, nor lousy manuals
nor missing parts, nor wrong parts shall keep me from my task.
  --Christopher Hicks


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