aboutsummaryrefslogtreecommitdiff
path: root/src/clientiface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r--src/clientiface.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/clientiface.cpp b/src/clientiface.cpp
index 126979897..3171e7795 100644
--- a/src/clientiface.cpp
+++ b/src/clientiface.cpp
@@ -626,12 +626,9 @@ void ClientInterface::UpdatePlayerList()
}
void ClientInterface::send(u16 peer_id, u8 channelnum,
- NetworkPacket* pkt, bool reliable, bool deletepkt)
+ NetworkPacket* pkt, bool reliable)
{
m_con->Send(peer_id, channelnum, pkt, reliable);
-
- if (deletepkt)
- delete pkt;
}
void ClientInterface::sendToAll(u16 channelnum,
@@ -647,8 +644,6 @@ void ClientInterface::sendToAll(u16 channelnum,
m_con->Send(client->peer_id, channelnum, pkt, reliable);
}
}
-
- delete pkt;
}
RemoteClient* ClientInterface::getClientNoEx(u16 peer_id, ClientState state_min)