From 4ef3108d583c128f71ac6893dc85f4f950c39c21 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 26 Apr 2010 15:25:12 +0200 Subject: [PATCH] offset magic --- dfhack/modules/Creatures.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dfhack/modules/Creatures.cpp b/dfhack/modules/Creatures.cpp index 7e2b2e50f..ae2ad2557 100644 --- a/dfhack/modules/Creatures.cpp +++ b/dfhack/modules/Creatures.cpp @@ -372,9 +372,9 @@ bool Creatures::ReadJob(const t_creature * furball, vector & mat) mat.resize(cmats.size()); for(i=0;ireadWord(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; }