Unpack UDP_frame_info

This commit is contained in:
Kp 2014-06-26 02:27:16 +00:00
parent f1970ad129
commit c7b161cf2d
2 changed files with 3 additions and 3 deletions

View file

@ -127,13 +127,13 @@ struct UDP_sequence_packet : prohibit_void_ptr<UDP_sequence_packet>
};
// player position packet structure
struct UDP_frame_info
struct UDP_frame_info : prohibit_void_ptr<UDP_frame_info>
{
ubyte type;
ubyte Player_num;
ubyte connected;
quaternionpos qpp;
} __pack__;
};
// packet structure for multi-buffer
struct UDP_mdata_info

View file

@ -4759,7 +4759,7 @@ void net_udp_process_pdata ( ubyte *data, int data_len, struct _sockaddr sender_
len++;
memset(&pd, 0, sizeof(UDP_frame_info));
pd = {};
if (data_len > sizeof(UDP_frame_info))
return;