mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:21:16 +02:00
make sure entities constructed from reading buffers are included in the entity hash map
This commit is contained in:
parent
6b62c6b976
commit
9409d07c46
1 changed files with 1 additions and 0 deletions
|
@ -629,6 +629,7 @@ int EntityTreeElement::readElementDataFromBuffer(const unsigned char* data, int
|
||||||
if (entityItem) {
|
if (entityItem) {
|
||||||
bytesForThisEntity = entityItem->readEntityDataFromBuffer(dataAt, bytesLeftToRead, args);
|
bytesForThisEntity = entityItem->readEntityDataFromBuffer(dataAt, bytesLeftToRead, args);
|
||||||
addEntityItem(entityItem); // add this new entity to this elements entities
|
addEntityItem(entityItem); // add this new entity to this elements entities
|
||||||
|
_myTree->setContainingElement(entityItem->getEntityItemID(), this);
|
||||||
newEntity = true;
|
newEntity = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue