mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 10:43:45 +02:00
Merge pull request #1788 from birarda/assert-crash
fix incorrect packet position in AvatarData
This commit is contained in:
commit
19e8ddd202
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,8 @@ int AvatarData::parseData(const QByteArray& packet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// increment to push past the packet header
|
// increment to push past the packet header
|
||||||
const unsigned char* sourceBuffer = reinterpret_cast<const unsigned char*>(packet.data());
|
const unsigned char* startPosition = reinterpret_cast<const unsigned char*>(packet.data());
|
||||||
const unsigned char* startPosition = sourceBuffer + numBytesForPacketHeader(packet);
|
const unsigned char* sourceBuffer = startPosition + numBytesForPacketHeader(packet);
|
||||||
|
|
||||||
// Body world position
|
// Body world position
|
||||||
memcpy(&_position, sourceBuffer, sizeof(float) * 3);
|
memcpy(&_position, sourceBuffer, sizeof(float) * 3);
|
||||||
|
|
Loading…
Reference in a new issue