mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +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);
|
||||
auto pingPacket = NLPacket::create(PacketType::Ping, packetSize);
|
||||
|
||||
QDataStream packetStream(&pingPacket);
|
||||
QDataStream packetStream(pingPacket->get());
|
||||
|
||||
packetStream << pingType;
|
||||
packetStream << usecTimestampNow();
|
||||
|
|
Loading…
Reference in a new issue