diff --git a/interface/src/octree/OctreePacketProcessor.cpp b/interface/src/octree/OctreePacketProcessor.cpp index 7bb94323b7..386ebacc6d 100644 --- a/interface/src/octree/OctreePacketProcessor.cpp +++ b/interface/src/octree/OctreePacketProcessor.cpp @@ -77,8 +77,8 @@ void OctreePacketProcessor::processPacket(QSharedPointer packet, Share const QUuid& senderUUID = packet->getSourceID(); if (!versionDebugSuppressMap.contains(senderUUID, packetType)) { - qDebug() << "Packet version mismatch on" << packetType << "- Sender" - << senderUUID << "sent" << (int) packetType << "but" + qDebug() << "OctreePacketProcessor - piggyback packet version mismatch on" << packetType << "- Sender" + << senderUUID << "sent" << (int) packet->getVersion() << "but" << (int) versionForPacketType(packetType) << "expected."; emit packetVersionMismatch(); diff --git a/libraries/networking/src/udt/Packet.cpp b/libraries/networking/src/udt/Packet.cpp index 45c6a6f75f..91f9661b9d 100644 --- a/libraries/networking/src/udt/Packet.cpp +++ b/libraries/networking/src/udt/Packet.cpp @@ -104,6 +104,7 @@ Packet::Packet(const Packet& other) : Packet& Packet::operator=(const Packet& other) { _type = other._type; + _version = other._version; _packetSize = other._packetSize; _packet = std::unique_ptr(new char[_packetSize]); @@ -129,6 +130,7 @@ Packet::Packet(Packet&& other) { Packet& Packet::operator=(Packet&& other) { _type = other._type; + _version = other._version; _packetSize = other._packetSize; _packet = std::move(other._packet);