Re: Re[2]: [ Code ] Problems with characters dying...

From: Ghost Shaidan (ghost@EOLA.AO.NET)
Date: 07/30/97

YES!!!! return; is wrong!! My apologies, i was in a mild state of still
being asleep when i hit this mail, and didnt think of the whole loop.
Thanks for catching my slip.

Ghost Shaidan

p.s. There has been some discussion as to free() crashing MUD's because of
a newer library.  does anyone recall what version is safest, or best, or
what systems/distributions this affects?

> So you are using the damage() call, which cna extract the char if it dies.
> I would put in a quick
> if (!ch)
>    return;
>      <------ QUOTE
>      NO!!!! not return... be very careful here wether you use
>      continue;   skip to the end of the loop and go to the next entry
>      break;      leave the loop but fnish the func
>      return;     leave the func and don't look at any more peoples.
>      --Angus

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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