use NLPacket::createCopy in NetworkPacket

This commit is contained in:
Stephen Birarda 2015-07-07 16:35:59 -07:00
parent ff487ee092
commit 30840422ad

View file

@ -32,10 +32,10 @@ NetworkPacket::NetworkPacket(const SharedNodePointer& node, const NLPacket& pack
}
};
// copy assignment
// copy assignment
NetworkPacket& NetworkPacket::operator=(NetworkPacket const& other) {
_node = other._node;
_nlPacket = other._nlPacket;
_nlPacket = NLPacket::createCopy(other._nlPacket);
return *this;
}