Update materials module to match XML changes

develop
Quietust 2012-01-26 21:32:47 -06:00
parent fe34e07d2b
commit be892beba9
1 changed files with 2 additions and 2 deletions

@ -768,10 +768,10 @@ bool Materials::ReadCreatureTypesEx (void)
*/ */
// body parts // body parts
caste.bodypart.empty(); caste.bodypart.empty();
uint32_t sizebp = ca->body_parts.size(); uint32_t sizebp = ca->unknown1.body_parts.size();
for (uint32_t k = 0; k < sizebp; k++) for (uint32_t k = 0; k < sizebp; k++)
{ {
df::body_part_raw *bp = ca->body_parts[k]; df::body_part_raw *bp = ca->unknown1.body_parts[k];
t_bodypart part; t_bodypart part;
part.id = bp->part_code; part.id = bp->part_code;
part.category = bp->part_name; part.category = bp->part_name;