Re: [Code] Why is this happening?

From: Sammy (Samedi@cris.com)
Date: 01/21/97


On Tue, 21 Jan 1997, Finality Admin. wrote:

- I am experiencing a rather annoying problem with the hit command.
- Any time I use hit <target>, the mud crashes, gdb gives lines 830 or 832
- in fight.c as the culprits:
- 
-   if (ch->in_room != victim->in_room) {
-     if (FIGHTING(ch) && FIGHTING(ch) == victim)
-       stop_fighting(ch);
-     return;
-   }
- 
- #0  0x8074bcb in hit (ch=0x81fc0f0, victim=0x0, type=-1) at fight.c:830
                                      ^^^^^^^^^^
Your victim doesn't exist.  This may be stock code, but I don't think this
is a stock bug.  Check any recent changes you've made, particularly in
fight.c.

Sam

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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