mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Re-apply previous commit with a typo fix
This commit is contained in:
parent
31e0f0efe9
commit
c05228fa6d
@ -330,6 +330,18 @@ struct ConnectionCommand
|
||||
bool raw = false;
|
||||
|
||||
ConnectionCommand() = default;
|
||||
ConnectionCommand &operator=(const ConnectionCommand &other)
|
||||
{
|
||||
type = other.type;
|
||||
address = other.address;
|
||||
peer_id = other.peer_id;
|
||||
channelnum = other.channelnum;
|
||||
// We must copy the buffer here to prevent race condition
|
||||
data = SharedBuffer<u8>(*other.data, other.data.getSize());
|
||||
reliable = other.reliable;
|
||||
raw = other.raw;
|
||||
return *this;
|
||||
}
|
||||
|
||||
void serve(Address address_)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user