Silly building reading bug fixed

develop
Petr Mrázek 2010-02-25 14:59:29 +01:00
parent eff3462bf9
commit 49a2f97601
3 changed files with 3 additions and 1 deletions

@ -141,6 +141,7 @@ int main (int argc,const char* argv[])
uint32_t numBuildings; uint32_t numBuildings;
if(DF.InitReadBuildings(numBuildings)) if(DF.InitReadBuildings(numBuildings))
{ {
cout << numBuildings << endl;
vector < uint32_t > addresses; vector < uint32_t > addresses;
for(uint32_t i = 0; i < numBuildings; i++) for(uint32_t i = 0; i < numBuildings; i++)
{ {

@ -733,6 +733,7 @@ bool API::InitReadBuildings ( uint32_t& numbuildings )
{ {
d->buildingsInited = true; d->buildingsInited = true;
d->p_bld = new DfVector (d->p->readVector (buildings, 4)); d->p_bld = new DfVector (d->p->readVector (buildings, 4));
numbuildings = d->p_bld->getSize();
return true; return true;
} }
else else

@ -325,7 +325,7 @@ void memory_info::setClassChild (t_class * parent, const char * name, const char
vec.push_back(mcc); vec.push_back(mcc);
d->classindex++; d->classindex++;
// cout << " classtype " << name << ", assign " << mcc->assign << ", vtable " << mcc->type << endl; //cout << " classtype " << name << ", assign " << mcc->assign << ", vtable " << mcc->type << endl;
} }