diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-13 22:01:49 +0100 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-13 22:01:49 +0100 |
commit | 083c8c734e8af037d8ad3a1a35475a5d4756572c (patch) | |
tree | 4265ace09d605b3d1fbcde7dde2e2510798171ea /src/clientiface.cpp | |
parent | 74d34da6cbb06a4d5659eb3287a87239c31da22c (diff) | |
download | hax-minetest-server-083c8c734e8af037d8ad3a1a35475a5d4756572c.tar.gz hax-minetest-server-083c8c734e8af037d8ad3a1a35475a5d4756572c.zip |
Replace NetworkPacket pointers to references
Diffstat (limited to 'src/clientiface.cpp')
-rw-r--r-- | src/clientiface.cpp | 7 |
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) |