mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
use NLPacket::createCopy in NetworkPacket
This commit is contained in:
parent
ff487ee092
commit
30840422ad
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue