diff options
Diffstat (limited to 'src/netcomputer.cpp')
-rw-r--r-- | src/netcomputer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/netcomputer.cpp b/src/netcomputer.cpp index 2a8ecc22..dc692916 100644 --- a/src/netcomputer.cpp +++ b/src/netcomputer.cpp @@ -43,8 +43,7 @@ void NetComputer::disconnect(const std::string &reason) void NetComputer::send(const Packet *p) { // Create a reliable packet. - ENetPacket *packet = enet_packet_create(p->data, - p->length + 1, + ENetPacket *packet = enet_packet_create(p->data, p->length, ENET_PACKET_FLAG_RELIABLE); // Send the packet to the peer over channel id 0. |