diff --git a/core/networkpacket.cpp b/core/networkpacket.cpp index 98f38188d..a6eb26cf2 100644 --- a/core/networkpacket.cpp +++ b/core/networkpacket.cpp @@ -147,7 +147,6 @@ bool NetworkPacket::unserialize(const QByteArray& a, NetworkPacket* np) auto variant = parser.toVariant().toMap(); qvariant2qobject(variant, np); - np->m_payloadSize = variant[QStringLiteral("payloadSize")].toInt(); //Will return 0 if was not present, which is ok if (np->m_payloadSize == -1) { np->m_payloadSize = np->get(QStringLiteral("size"), -1); }