fixed nasty error in the network

This commit is contained in:
Magnus Auvinen 2007-07-21 19:02:47 +00:00
parent 4378e3e4e8
commit 0c786f6002
2 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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;