diff --git a/examples/buildingsdump.cpp b/examples/buildingsdump.cpp index 3207d396f..2b12bac52 100644 --- a/examples/buildingsdump.cpp +++ b/examples/buildingsdump.cpp @@ -141,6 +141,7 @@ int main (int argc,const char* argv[]) uint32_t numBuildings; if(DF.InitReadBuildings(numBuildings)) { + cout << numBuildings << endl; vector < uint32_t > addresses; for(uint32_t i = 0; i < numBuildings; i++) { diff --git a/library/DFHackAPI.cpp b/library/DFHackAPI.cpp index ab281c97e..bd6c4633b 100644 --- a/library/DFHackAPI.cpp +++ b/library/DFHackAPI.cpp @@ -733,6 +733,7 @@ bool API::InitReadBuildings ( uint32_t& numbuildings ) { d->buildingsInited = true; d->p_bld = new DfVector (d->p->readVector (buildings, 4)); + numbuildings = d->p_bld->getSize(); return true; } else diff --git a/library/DFMemInfo.cpp b/library/DFMemInfo.cpp index 7b68dc227..54876fbc8 100644 --- a/library/DFMemInfo.cpp +++ b/library/DFMemInfo.cpp @@ -325,7 +325,7 @@ void memory_info::setClassChild (t_class * parent, const char * name, const char vec.push_back(mcc); d->classindex++; -// cout << " classtype " << name << ", assign " << mcc->assign << ", vtable " << mcc->type << endl; + //cout << " classtype " << name << ", assign " << mcc->assign << ", vtable " << mcc->type << endl; }