fixed up a few debug messages in p3filelists

This commit is contained in:
csoler 2016-09-25 18:51:33 +02:00
parent bb4b577768
commit 068955d419
3 changed files with 10 additions and 8 deletions

View file

@ -982,7 +982,7 @@ bool InternalFileHierarchyStorage::load(const std::string& fname)
mNodes.clear();
mNodes.resize(n_nodes,NULL) ;
for(uint32_t i=0;i<mNodes.size();++i)
for(uint32_t i=0;i<mNodes.size() && buffer_offset < buffer_size;++i) // only the 2nd condition really is needed. The first one ensures that the loop wont go forever.
{
unsigned char *node_section_data = NULL ;
uint32_t node_section_size = 0 ;