diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-02-20 17:24:13 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2021-02-20 18:46:02 +0100 |
commit | 81e299f00ce3df587166ccc94f5997555cce5210 (patch) | |
tree | d5954c7f5756b67b2c6c1f7c6f2b635f5337eef2 /src/Protocol/Protocol_1_11.cpp | |
parent | Clang 7? (diff) | |
download | cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.gz cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.bz2 cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.lz cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.xz cuberite-81e299f00ce3df587166ccc94f5997555cce5210.tar.zst cuberite-81e299f00ce3df587166ccc94f5997555cce5210.zip |
Diffstat (limited to 'src/Protocol/Protocol_1_11.cpp')
-rw-r--r-- | src/Protocol/Protocol_1_11.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Protocol/Protocol_1_11.cpp b/src/Protocol/Protocol_1_11.cpp index ff0c34223..c8ba78e62 100644 --- a/src/Protocol/Protocol_1_11.cpp +++ b/src/Protocol/Protocol_1_11.cpp @@ -1241,7 +1241,7 @@ void cProtocol_1_11_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_ case mtVindicator: { // Todo: Mobs not added yet. Grouped ones have the same metadata - UNREACHABLE("cProtocol_1_11::WriteMobMetadata: received unimplemented type"); + ASSERT(!"cProtocol_1_11::WriteMobMetadata: received unimplemented type"); break; } @@ -1260,10 +1260,7 @@ void cProtocol_1_11_0::WriteMobMetadata(cPacketizer & a_Pkt, const cMonster & a_ // Mobs without additional metadata break; } - case mtInvalidType: - { - break; - } + default: UNREACHABLE("cProtocol_1_11::WriteMobMetadata: received mob of invalid type"); } // switch (a_Mob.GetType()) } |