From 0a988e07cb97418f36e798c68967d3a7f76a457d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 28 Nov 2017 21:00:21 -0500 Subject: [PATCH] packet: Simplify operator bool overload Previously this would cause a -Wnull-conversion warning --- src/network/packet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {