Re: Lets test those coding skills of your...

From: Del (
Date: 12/02/01

David Cole wrote:

>  if (CAN_SEE(d->character, FIGHTING(d->character))) {
>     sprintf(prompt + strlen(prompt), " T: %s ",
> GET_NAME(FIGHTING(FIGHTING(d->character))));

Out of curiosity, why are you getting GET_NAME(FIGHTING(FIGHTING(d->character)))
does this not point to GET_NAME(d->character)?

It seems to me, if the mob is going mortally wounded, it is no longer FIGHTING
and becomes NULL => causing crash since you are calling FIGHTING(FIGHTING....

Hope I see this correctly.

   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 06/24/03 PDT