minor mem error in stat file and others

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 12/14/97


     ok... sorry for all the little messages, but i want to remember them
     as they come to me.
     1)

     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;

     2)
     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?

     --Angus


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