OasisOLC: medit save bug

From: Harvey Gilpin (rv@twylite.demon.co.uk)
Date: 04/14/96


Hi all,

Big thanks to Chris Epler who has been busy putting Oasis through it's
paces and has found a bug in medit's save to disk function.

If the mobile does not have a detailed description, it will protection
fault on saving.  Try "medit save 54" for an example of this.

The fix:

In medit.c, medit_save_to_disk():

change the lines:

  strcpy(buf2, GET_DDESC(mob));
  strip_string(buf2);

to:

  if(GET_DDESC(mob))
  { strcpy(buf2, GET_DDESC(mob));
    strip_string(buf2);
  } else
    strcpy(buf2, "You see nothing special\n");


Keep those bug reports coming in!


Rv.



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