> I don't understand what I need to do
OK - explanation:
> > > do_flag_norm( ch, victim, argument, type, victim->affected_by,
> > > affect_flags );
> > > .......
> > >
> > > Here's the function header for do_flag norm:
> > > void do_flag_norm( CHAR_DATA *ch, CHAR_DATA *victim, char *argument,
> > > char type, long *flag, const struct flag_type *flag_table )
change this to
void do_flag_norm( CHAR_DATA *ch, CHAR_DATA *victim, char *argument, char
type, FLAG flag, const struct flag_type *flag_table )
("FLAG flag" instead of "long *flag")
> > > act_wiz.c: In function `do_mstat':
> > > act_wiz.c:2464: warning: passing arg 1 of `STR_IS_ZERO' makes pointer
from
> > > integer without a cast
> > > 2464: if ( !STR_IS_ZERO(victim->affected_by, AFF_FLAGS) )
> > >
> > > In merc.h, STR_IS_ZERO is defined as:
> > > bool STR_IS_ZERO args( ( FLAG *var, int size ) );
You need to change this to
bool STR_IS_ZERO args((FLAG var, int size));
remember to change it BOTH in merc.h AND in whereever else it is (your
compiler will return an error if you just change it in merc.h)
/Reg