On Mon, 11 Aug 1997, Crimson Wizard wrote:
>void perform_violence(void)
>{
>  struct char_data *ch;
>  extern struct index_data *mob_index;
>  int perc, val, apr;
>
>  if (IS_NPC(ch)) {
>    perc = number(1, 101);
>    val = ch->mob_specials.attack1;
>    if (val > perc) {
You never assign 'ch' to anything so it points to random garbage in a
random part of your memory, usually outside your allowable range.
Beware of the uninitialized variable.
--
greerga@muohio.edu me@null.net | Genius may have its limitations, but stupidity
http://www.muohio.edu/~greerga | is not thus handicapped. -- 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/08/00 PST