NetPlayClient: Correctly free packet data

This commit is contained in:
Lioncash 2015-08-18 08:09:17 -04:00
parent 4baaa3755e
commit 68c0ec281b
1 changed files with 1 additions and 0 deletions

View File

@ -188,6 +188,7 @@ bool NetPlayClient::Connect()
if (enet_host_service(m_client, &netEvent, 5000) > 0 && netEvent.type == ENET_EVENT_TYPE_RECEIVE)
{
rpac.append(netEvent.packet->data, netEvent.packet->dataLength);
enet_packet_destroy(netEvent.packet);
}
else
{