ENetUtil: Check return values of ENet functions in SendPacket().

This commit is contained in:
Admiral H. Curtiss
2022-10-09 02:39:38 +02:00
parent 66684a392f
commit bfbc04ef5e
2 changed files with 17 additions and 3 deletions

View File

@ -13,5 +13,5 @@ namespace ENetUtil
{
void WakeupThread(ENetHost* host);
int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event);
void SendPacket(ENetPeer* socket, const sf::Packet& packet, u8 channel_id);
bool SendPacket(ENetPeer* socket, const sf::Packet& packet, u8 channel_id);
} // namespace ENetUtil