make sure entities constructed from reading buffers are included in the entity hash map

This commit is contained in:
ZappoMan 2014-07-17 11:22:25 -07:00
parent 6b62c6b976
commit 9409d07c46

View file

@ -629,6 +629,7 @@ int EntityTreeElement::readElementDataFromBuffer(const unsigned char* data, int
if (entityItem) {
bytesForThisEntity = entityItem->readEntityDataFromBuffer(dataAt, bytesLeftToRead, args);
addEntityItem(entityItem); // add this new entity to this elements entities
_myTree->setContainingElement(entityItem->getEntityItemID(), this);
newEntity = true;
}
}