feat(UpdatePlayerStructs): Networkhandle allocation size can be smaller

This commit is contained in:
Yimura 2021-10-15 11:28:54 +02:00
parent 044ccd0ab6
commit ccfd66a663
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -29,8 +29,8 @@ namespace big
player.id = i;
player.is_online = true;
int iNetworkHandle[26];
NETWORK::NETWORK_HANDLE_FROM_PLAYER(i, &iNetworkHandle[0], 13);
int iNetworkHandle[13];
NETWORK::NETWORK_HANDLE_FROM_PLAYER(i, iNetworkHandle, 13);
bool is_friend = NETWORK::NETWORK_IS_HANDLE_VALID(&iNetworkHandle[0], 13) && NETWORK::NETWORK_IS_FRIEND(&iNetworkHandle[0]);
if (is_friend)