diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-10 17:08:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-10 17:08:15 +0100 |
commit | 4e46a8101b2063457ac0c56770e58cd0bedf52ea (patch) | |
tree | 575968be8db0793ecc560480f45590fa396f32e3 /src | |
parent | 2feb6154cf5ff2d8707727f67a62a9b1db3af30c (diff) |
w
Diffstat (limited to 'src')
-rw-r--r-- | src/chunk-walls.cpp | 2 | ||||
-rw-r--r-- | src/wall-atlas.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index 20539372..01cc39b6 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -131,6 +131,8 @@ constexpr Quads::quad get_quad(Direction_ D, Group_ G, float depth) }}; } } + std::unreachable(); + fm_abort("invalid wall_atlas group '%d'", (int)G); } // ----------------------- diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp index d0fe6210..3b2ff9d7 100644 --- a/src/wall-atlas.cpp +++ b/src/wall-atlas.cpp @@ -58,6 +58,8 @@ wall_atlas::wall_atlas(wall_atlas_def def, String path, const ImageView2D& img) _image_size{get_image_size(img)}, _direction_map{def.direction_map} { + fm_soft_assert(!def.frames.empty()); + { bool found = false; for (auto [dir_name, dir] : wall_atlas::directions) |