mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 13:56:24 +02:00
fix data corruption bug
This commit is contained in:
parent
6da8c5545e
commit
1815d71158
2 changed files with 2 additions and 2 deletions
|
@ -1590,7 +1590,7 @@ void MyAvatar::loadAvatarEntityDataFromSettings() {
|
|||
OctreeElement::AppendState appendState = entity->appendEntityData(&packetData, params, extra);
|
||||
if (appendState == OctreeElement::COMPLETED) {
|
||||
// only remember an AvatarEntity that successfully loads and can be packed
|
||||
QByteArray tempArray = QByteArray::fromRawData((const char*)packetData.getUncompressedData(), packetData.getUncompressedSize());
|
||||
QByteArray tempArray((const char*)packetData.getUncompressedData(), packetData.getUncompressedSize());
|
||||
storeAvatarEntityDataPayload(entityID, tempArray);
|
||||
_avatarEntityStrings[entityID] = _avatarEntityDataSettings[i].get();
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ void EntityEditPacketSender::queueEditAvatarEntityMessage(EntityTreePointer enti
|
|||
return;
|
||||
}
|
||||
|
||||
QByteArray tempArray = QByteArray::fromRawData((const char*)packetData.getUncompressedData(), packetData.getUncompressedSize());
|
||||
QByteArray tempArray((const char*)packetData.getUncompressedData(), packetData.getUncompressedSize());
|
||||
_myAvatar->storeAvatarEntityDataPayload(entityItemID, tempArray);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue