Re: Obj Value referencing

From: Sammy (samedi@DHC.NET)
Date: 05/21/98


On Thu, 21 May 1998, Dan Argent wrote:

> 0x806bed7 in fire_missile (ch=0x81ccc90, arg1=0xbffff584 "ser",
> missile=0x0,
>     pos=17, range=2, dir=0) at fight.c:1032
> 1032      if (GET_OBJ_TYPE(missile) == ITEM_GRENADE) {

To quote a wise coder: "Garbage in, garbage out".

Your fire_missle function may be perfectly correct (haven't even looked at
the code), but if you look at the first line above, you're passing it a
NULL pointer to missile.

Whatever code calls fire_missle is at fault.

Sam


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