> First, Its been 5 years, and I still find some stock ROM bugs. This
> one eluded every mud coder I spoke to.. anyways.. here it is.
>
> this is also on my buglisting.txt file on
> www.mageslair.net/snippets/snippets.html page
>
>
You could also just not save the affect to the pfile if it's a perm
affect. I ended doing this in the fwrite_pet:
for ( paf = pet->affected; paf != NULL; paf = paf->next )
{
if ( paf->type < 0 || paf->type >= MAX_SKILL )
continue;
/* Don't save affects that are permanently set on a mob, create_mobile
adds them */ if (permaset(pet, paf) )
continue;
fprintf( blah...
}
And permaset checks the pet->pIndexData->affected_by to see if
paf->bitvector is set.
This way you don't have to worry about adding in extra affects that will
just be immediately recycled when a pet loads.
Jef