diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-12 20:42:39 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-12 20:42:39 +0100 |
commit | 94c8cf69266f369cf9d43111d044f4d2b5d48e6d (patch) | |
tree | a828c44563e6034fae643ca02a29564f5a3b2c91 | |
parent | 3a53c6ede79835c5711bda3a332995f2407f5d12 (diff) |
zz
-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) |