1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-30 04:30:42 +02:00

Fix compilation error

This commit is contained in:
nordsoft 2023-01-15 01:32:22 +04:00
parent 30f98ca6ee
commit b1252becc2

View File

@ -89,6 +89,7 @@ int CConnection::write(const void * data, unsigned size)
boost::unique_lock<boost::mutex> lock(mutexWrite); boost::unique_lock<boost::mutex> lock(mutexWrite);
ENetPacket * packet = enet_packet_create(data, size, ENET_PACKET_FLAG_RELIABLE); ENetPacket * packet = enet_packet_create(data, size, ENET_PACKET_FLAG_RELIABLE);
enet_peer_send(peer, channel, packet); enet_peer_send(peer, channel, packet);
return size;
} }
int CConnection::read(void * data, unsigned size) int CConnection::read(void * data, unsigned size)