offset magic

develop
simon 2010-04-26 15:25:12 +02:00
parent f73d936398
commit 4ef3108d58
1 changed files with 3 additions and 3 deletions

@ -372,9 +372,9 @@ bool Creatures::ReadJob(const t_creature * furball, vector<t_material> & mat)
mat.resize(cmats.size());
for(i=0;i<cmats.size();i++)
{
mat[i].typeA = p->readWord(cmats[i] + minfo->getOffset("job_material_maintype"));
mat[i].typeB = p->readWord(cmats[i] + minfo->getOffset("job_material_sectype1"));
mat[i].typeC = p->readWord(cmats[i] + minfo->getOffset("job_material_sectype2"));
mat[i].typeA = p->readWord(cmats[i] + minfo->getOffset("job_material_maintype"));
mat[i].typeB = p->readWord(cmats[i] + minfo->getOffset("job_material_sectype1"));
mat[i].typeC = p->readWord(cmats[i] + minfo->getOffset("job_material_sectype2"));
}
return true;
}