summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/chunk-walls.cpp2
-rw-r--r--src/wall-atlas.cpp2
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)