Re: minor mem error in stat file and others

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


On Sun, 14 Dec 1997, Angus Mezick wrote:

>     in do_stat_char in act.wizard.c it check world[k->in_room].number but
>     if you are doing stat file <name> then k->in_room == -1 and is outside
>     the array (this happens all over BTW) my solution was at the beginning
>     of do_stat_char
>
>     if(k->in_room<0)
>       k->in_room==0;

Not good practice to fix just the symptoms.  I've submitted a patch (and
posted it) to Jeremy that will fix both do_stat and do_stat_character.

>     Oasis
>     free_room()
>     needs a call to free(room) at the end but this causes other problems.
>
>     I noticed the problem when i didn't save_internally. (answered 'n' or
>     just didn't do any edits.  George? a solution?

I'll look into it.

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