Fix local feature read for arena mode (no read if base == 0)

develop
Petr Mrázek 2010-04-27 00:17:53 +02:00
parent 41268470b6
commit 06ce1c7225
1 changed files with 2 additions and 0 deletions

@ -702,6 +702,8 @@ bool Maps::ReadLocalFeatures( std::map <planecoord, std::vector<t_feature *> > &
memory_info * mem = p->getDescriptor(); memory_info * mem = p->getDescriptor();
// deref pointer to the humongo-structure // deref pointer to the humongo-structure
uint32_t base = p->readDWord(mem->getAddress("local_feature_start_ptr")); uint32_t base = p->readDWord(mem->getAddress("local_feature_start_ptr"));
if(!base)
return false;
uint32_t sizeof_vec = mem->getHexValue("sizeof_vector"); uint32_t sizeof_vec = mem->getHexValue("sizeof_vector");
const uint32_t sizeof_elem = 16; const uint32_t sizeof_elem = 16;
const uint32_t offset_elem = 4; const uint32_t offset_elem = 4;