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
commit bfbc04ef5e
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
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