Re: [CODE][NEWBIE]Crashing during combat

From: George (greerga@CIRCLEMUD.ORG)
Date: 02/06/98


On Fri, 6 Feb 1998, Bill Merrill wrote:

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

You're trying to dereference a NULL pointer.
('victim=0x0' and you're doing 'GET_AC(victim)')

Now you just have to figure out why hit() is being called with no victim.
(Your target probably already died and FIGHTING(ch) == NULL.)

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~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/15/00 PST