diff options
author | Bond-009 <bond.009@outlook.com> | 2017-10-16 19:39:53 +0200 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2017-10-16 19:39:53 +0200 |
commit | 05e7be7f738356005700bacecb674db3a70c4656 (patch) | |
tree | ef637757fa2abf55bcb06df46c8de8ef6dcd123f | |
parent | Fixed 2 small warnings (#4055) (diff) | |
download | cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.gz cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.bz2 cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.lz cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.xz cuberite-05e7be7f738356005700bacecb674db3a70c4656.tar.zst cuberite-05e7be7f738356005700bacecb674db3a70c4656.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/PacketID.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Protocol/PacketID.cpp b/src/Protocol/PacketID.cpp index 6bb8379dd..f401f856e 100644 --- a/src/Protocol/PacketID.cpp +++ b/src/Protocol/PacketID.cpp @@ -79,8 +79,11 @@ UInt32 cProtocol_1_9_0::GetPacketId(eOutgoingPackets a_Packet) case sendWindowOpen: return 0x13; case sendWindowProperty: return 0x15; } - LOGWARNING("Retrieving packet ID for unknown packet type %d!", a_Packet); - return 0; + ASSERT(!"Retrieving packet ID for unknown packet type"); + #ifndef __clang__ + LOGWARNING("Retrieving packet ID for unknown packet type %d!", a_Packet); + return 0; + #endif } |