diff options
author | peterbell10 <peterbell10@live.co.uk> | 2018-02-05 00:07:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-05 00:07:12 +0100 |
commit | d3c1c626f569e5aa58085425924cca45927b6199 (patch) | |
tree | c65dee850358467c9afebdd37fcd4f6fb95a475a /src/Entities/Boat.cpp | |
parent | cChunk and cChunkData: Use vectors for block get and set functions (#4172) (diff) | |
download | cuberite-d3c1c626f569e5aa58085425924cca45927b6199.tar cuberite-d3c1c626f569e5aa58085425924cca45927b6199.tar.gz cuberite-d3c1c626f569e5aa58085425924cca45927b6199.tar.bz2 cuberite-d3c1c626f569e5aa58085425924cca45927b6199.tar.lz cuberite-d3c1c626f569e5aa58085425924cca45927b6199.tar.xz cuberite-d3c1c626f569e5aa58085425924cca45927b6199.tar.zst cuberite-d3c1c626f569e5aa58085425924cca45927b6199.zip |
Diffstat (limited to 'src/Entities/Boat.cpp')
-rw-r--r-- | src/Entities/Boat.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Entities/Boat.cpp b/src/Entities/Boat.cpp index 4021f9ce8..20947dc44 100644 --- a/src/Entities/Boat.cpp +++ b/src/Entities/Boat.cpp @@ -207,10 +207,7 @@ AString cBoat::MaterialToString(eMaterial a_Material) case bmAcacia: return "acacia"; case bmDarkOak: return "dark_oak"; } - ASSERT(!"Unhandled boat material"); - #ifndef __clang__ - return "oak"; - #endif + UNREACHABLE("Unsupported boat material"); } @@ -264,9 +261,7 @@ cItem cBoat::MaterialToItem(eMaterial a_Material) case bmAcacia: return cItem(E_ITEM_ACACIA_BOAT); case bmDarkOak: return cItem(E_ITEM_DARK_OAK_BOAT); } - #ifndef __clang__ - return cItem(E_ITEM_BOAT); - #endif + UNREACHABLE("Unsupported boat material"); } |