3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-27 09:35:28 +02:00

Fix for reading aggregate avatar packets.

This commit is contained in:
Andrzej Kapolka 2014-03-18 17:48:57 -07:00
parent 6d0269d537
commit f9fd0d432f

View file

@ -176,8 +176,8 @@ int AvatarData::parseDataAtOffset(const QByteArray& packet, int offset) {
_handData = new HandData(this);
}
const unsigned char* startPosition = reinterpret_cast<const unsigned char*>(packet.data());
const unsigned char* sourceBuffer = startPosition + offset;
const unsigned char* startPosition = reinterpret_cast<const unsigned char*>(packet.data()) + offset;
const unsigned char* sourceBuffer = startPosition;
// Body world position
memcpy(&_position, sourceBuffer, sizeof(float) * 3);