diff options
-rw-r--r-- | editor/wall-editor.cpp | 2 | ||||
-rw-r--r-- | src/chunk-collision.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/wall-editor.cpp b/editor/wall-editor.cpp index 99a5bd22..4aade03e 100644 --- a/editor/wall-editor.cpp +++ b/editor/wall-editor.cpp @@ -77,7 +77,7 @@ void wall_editor::place_tile(world& w, global_coords coords, const std::shared_p { case rotation::N: t.wall_north() = { atlas, (uint8_t)-1 }; break; case rotation::W: t.wall_west() = { atlas, (uint8_t)-1 }; break; - default: CORRADE_ASSUME(false); + default: std::unreachable(); } } diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp index ed6a23d2..d95a6a9b 100644 --- a/src/chunk-collision.cpp +++ b/src/chunk-collision.cpp @@ -115,7 +115,7 @@ void chunk::_replace_bbox(const bbox& x0, const bbox& x1, bool b0, bool b1) case 0 << 1 | 0 << 0: return; } - CORRADE_ASSUME(false); + std::unreachable(); } bool chunk::can_place_object(const object_proto& proto, local_coords pos) |