mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:43:27 +02:00
fix header size for NLPacket writeTypeAndVersion
This commit is contained in:
parent
5e3d3fc06b
commit
04c1d154ab
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ QByteArray NLPacket::hashForPacketAndSecret(const udt::Packet& packet, const QUu
|
||||||
}
|
}
|
||||||
|
|
||||||
void NLPacket::writeTypeAndVersion() {
|
void NLPacket::writeTypeAndVersion() {
|
||||||
auto headerOffset = Packet::localHeaderSize(isPartOfMessage());
|
auto headerOffset = Packet::totalHeaderSize(isPartOfMessage());
|
||||||
|
|
||||||
// Pack the packet type
|
// Pack the packet type
|
||||||
memcpy(_packet.get() + headerOffset, &_type, sizeof(PacketType));
|
memcpy(_packet.get() + headerOffset, &_type, sizeof(PacketType));
|
||||||
|
|
Loading…
Reference in a new issue