mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-05 15:48:19 +00:00
fixed nasty error in the network
This commit is contained in:
parent
4378e3e4e8
commit
0c786f6002
|
@ -147,6 +147,8 @@ int client_send_msg()
|
|||
{
|
||||
const msg_info *info = msg_get_info();
|
||||
NETPACKET packet;
|
||||
mem_zero(&packet, sizeof(NETPACKET));
|
||||
|
||||
packet.client_id = 0;
|
||||
packet.data = info->data;
|
||||
packet.data_size = info->size;
|
||||
|
|
|
@ -102,6 +102,8 @@ int server_send_msg(int client_id)
|
|||
{
|
||||
const msg_info *info = msg_get_info();
|
||||
NETPACKET packet;
|
||||
mem_zero(&packet, sizeof(NETPACKET));
|
||||
|
||||
packet.client_id = client_id;
|
||||
packet.data = info->data;
|
||||
packet.data_size = info->size;
|
||||
|
|
Loading…
Reference in a new issue