assignment of read-only member `bvAffects

Posted by Ithildin on Sun 13 Feb 2005 08:56 PM — 2 posts, 12,734 views.

USA #0
What exactly does this mean?


assignment of read-only member `bvAffects


I get it when compiling. I'm not sure how bvaffects becomes read-only.

Tyler

here's some code:

void
init_classes(void)
{
        int i;

        for (i = 1; i < MAX_CLASS ; i++)
        {
                class_table.bvAffects =
                                ext_flag_value(affect_flags,
                                class_table.szAffects); <---This is the line.
        }
}


Not really sure.
Amended on Sun 13 Feb 2005 09:01 PM by Ithildin
USA #1
Is it const, by any chance? That would do it...