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; }