mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
fix PingType_t cast for icePingPacket
This commit is contained in:
parent
e0aea7f955
commit
61960c80c8
1 changed files with 1 additions and 1 deletions
|
@ -559,7 +559,7 @@ std::unique_ptr<NLPacket> constructICEPingPacket(PingType_t pingType, const QUui
|
|||
auto icePingPacket = NLPacket::create(PacketType::ICEPing, packetSize);
|
||||
|
||||
icePingPacket->write(iceID.toRfc4122());
|
||||
icePingPacket->write(&pingType, sizeof(pingType));
|
||||
icePingPacket->write(reinterpret_cast<char *>(&pingType), sizeof(pingType));
|
||||
|
||||
return icePingPacket;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue