MAX_SKILL is at 157
Actual Skills is at 139
with groups its at 168

print j returns:                     $1 = 0
print i returns:                     $2 = 0
print skill_table[j].name returns:   $3 = 0x80eb176 "reserved"

At first I thought that the groups were included in the grand scheme of the
skill/spell count...I editted MAX_SKILLS to include this but still same
error.

Thanks for your help!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bobby
Hicks
Sent: Thursday, April 18, 2002 10:28 PM
To: [EMAIL PROTECTED]; [email protected]
Subject: RE: Seg fault with Class Editor


<huge snip>
void load_classes ()
{
        int i,j;

        for (i = 0; i < MAX_CLASS; i++)
        {
                for (j = 0; j < MAX_SKILL; j++)
--->112                   skill_table[j].skill_level[i] = LEVEL_IMMORTAL;

                load_class (i);
        }
}
</snip>

Ok, first of all, what is MAX_SKILL?  as in, what number.  Secondly, how
many actual skills do you have?  Is it possible that you are trying to read
non-existant skills?

A good way to check is to do:

print j
print i
print skill_table[j].name


That would be my first guess.

Rheede


--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom



Reply via email to