Re: hmmm.... db.c:free_char()

From: George (greerga@CIRCLEMUD.ORG)
Date: 08/06/98

On Thu, 6 Aug 1998, Angus Mezick wrote:

>At the very end of this function, is there any reason not to do a ch=NULL;
>right have the free(ch); call?  I think this might be a nice way to ensure
>consistancy.  But for that DT and fast aggr problem, you need to check to
>see if(ch && ch->in_room)

Won't do anything, the pointer's value is passed, not the actual pointer.

If you really wanted to, you'd have to make it a struct char_data **ch in
that function instead, then free_char(&ch), and fix the function

George Greer, | Genius may have its limitations, but (not done) | stupidity is not thus handicapped.    |                  -- Elbert Hubbard

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

This archive was generated by hypermail 2b30 : 12/15/00 PST