From 7bf0bdf1610874117be2a0569aa4f87131891f6a Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Thu, 26 May 2011 07:47:58 +0200 Subject: [PATCH] Updated sfPacket_CanRead in CSFML --- bindings/c/src/SFML/Network/Packet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bindings/c/src/SFML/Network/Packet.cpp b/bindings/c/src/SFML/Network/Packet.cpp index fc017625a..7c7b6c45e 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; }