diff --git a/src/network/packet.cpp b/src/network/packet.cpp index 7e1a812f34..8fc5feabd4 100644 --- a/src/network/packet.cpp +++ b/src/network/packet.cpp @@ -63,7 +63,7 @@ bool Packet::EndOfPacket() const { } Packet::operator bool() const { - return is_valid ? &Packet::CheckSize : nullptr; + return is_valid; } Packet& Packet::operator>>(bool& out_data) {