mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:57:30 +02:00
fix QDataStream creation with NLPacket
This commit is contained in:
parent
ccb632cd39
commit
88f8f692fb
1 changed files with 1 additions and 1 deletions
|
@ -525,7 +525,7 @@ std::unique_ptr<NLPacket> LimitedNodeList::constructPingPacket(PingType_t pingTy
|
||||||
int packetSize = sizeof(PingType_t) + sizeof(quint64);
|
int packetSize = sizeof(PingType_t) + sizeof(quint64);
|
||||||
auto pingPacket = NLPacket::create(PacketType::Ping, packetSize);
|
auto pingPacket = NLPacket::create(PacketType::Ping, packetSize);
|
||||||
|
|
||||||
QDataStream packetStream(&pingPacket);
|
QDataStream packetStream(pingPacket->get());
|
||||||
|
|
||||||
packetStream << pingType;
|
packetStream << pingType;
|
||||||
packetStream << usecTimestampNow();
|
packetStream << usecTimestampNow();
|
||||||
|
|
Loading…
Reference in a new issue