diff --git a/bindings/c/src/SFML/Network/Packet.cpp b/bindings/c/src/SFML/Network/Packet.cpp index fc017625..7c7b6c45 100644 --- a/bindings/c/src/SFML/Network/Packet.cpp +++ b/bindings/c/src/SFML/Network/Packet.cpp @@ -139,7 +139,8 @@ sfBool sfPacket_EndOfPacket(const sfPacket* packet) //////////////////////////////////////////////////////////// sfBool sfPacket_CanRead(const sfPacket* packet) { - CSFML_CALL_RETURN(packet, operator bool(), sfFalse); + CSFML_CHECK_RETURN(packet, sfFalse); + return packet->This ? sfTrue : sfFalse; }