free_char()

From: waliczek gary jason (gwalicze@coewl.cen.uiuc.edu)
Date: 11/16/95


There is a slight bug in this function, the player_specials are freed 
before the free_alias loop is executed, leaving no pointers to the 
aliases. The 

  while ((a = GET_ALIASES(ch)) != NULL) {
    GET_ALIASES(ch) = (GET_ALIASES(ch))->next;
    free_alias(a);
  }

statement should be within the     
 
if (ch->player_specials != NULL && ch->player_specials != &dummy_mob) {

statement.

Gary



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