[CODE][NEWBIE]Crashing during combat

From: Bill Merrill (wyrm@SHORE.NET)
Date: 02/06/98


Hello,

My first time posting so hopefully I do this correctly. I am pretty new to
coding but I am picking it up slowly. I added the dual-wield skill and a
second attack skill to my code(after alot of necessary modification). Now
when testing it, the mud randomly crashes during the middle of combat. Here
is what gdb outputs:

Program received signal SIGSEGV, Segmentation fault.
0x8069fee in hit (ch=0x82a0918, victim=0x0, type=-1) at fight.c:801
801       victim_ac = GET_AC(victim) / 10;

I think somewhere in memory something is getting corrupted because if I
were to comment out that little section (in the hit procedure), it just
dumps further on in the program.

Any help is appreciated, and if needed I can post the mods I have done to
fight.c to maybe clear some things up.

Thanks,

wyrm

Bill Merrill
Shore.Net Network Ops


     +------------------------------------------------------------+
     | 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