Re: IS_NPC bug in CVS snapshot

From: George (greerga@CIRCLEMUD.ORG)
Date: 09/21/98


On Mon, 21 Sep 1998, Tony Robbins [Kupek] wrote:

>Well, my MUD stopped crashing when I put this:
>  if (ch->desc)
>    strncpy(st.host, ch->desc->host, HOST_LENGTH);
[...]
>What's that look like in your save_char, db.c ?

void save_char(struct char_data * ch, sh_int load_room)
{
  struct char_file_u st;

  if (IS_NPC(ch) || !ch->desc || GET_PFILEPOS(ch) < 0)
    return;
[...]

:)

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/   (mostly) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- 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/15/00 PST