From 43d4d0bb28d6f6a5af11ed7da04c747943fdcc4b Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Wed, 25 May 2011 07:38:18 +0200 Subject: [PATCH] Fixed last commit --- src/SFML/Network/Packet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Network/Packet.cpp b/src/SFML/Network/Packet.cpp index 5b668969f..740ca39f5 100644 --- a/src/SFML/Network/Packet.cpp +++ b/src/SFML/Network/Packet.cpp @@ -94,7 +94,7 @@ bool Packet::EndOfPacket() const //////////////////////////////////////////////////////////// Packet::operator void*() const { - return myIsValid ? this : NULL; + return myIsValid ? const_cast(this) : NULL; }