summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-12-11 05:55:09 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-12-11 05:55:09 +0100
commitcd006bb9a4db0b0410ccabce56b32b4d49ecdff2 (patch)
tree5594e827eea8b350c31ada4cc3ae7d576904e0de
parentcde53a4dab421bbc5da22029571b1e2b5ad476a5 (diff)
a
-rw-r--r--src/wall-atlas.cpp3
-rw-r--r--test/wall-atlas2.cpp1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp
index bb9013fd..443ebd92 100644
--- a/src/wall-atlas.cpp
+++ b/src/wall-atlas.cpp
@@ -77,9 +77,6 @@ wall_atlas::wall_atlas(wall_atlas_def def, String path, const ImageView2D& img)
if (!G.is_defined)
continue;
found = true;
- if (G.count == 0) [[unlikely]]
- fm_throw("wall_atlas '{}' defined group {}/{} has no frames!"_cf,
- _path, dir_name, group_name);
fm_soft_assert(G.index < frame_count && G.index + G.count <= frame_count);
const auto size = expected_size(_info.depth, gr);
for (const auto& frame : ArrayView { &_frame_array[G.index], G.count })
diff --git a/test/wall-atlas2.cpp b/test/wall-atlas2.cpp
index 4fcf57d1..c06bc496 100644
--- a/test/wall-atlas2.cpp
+++ b/test/wall-atlas2.cpp
@@ -21,6 +21,7 @@ void test_app::test_wall_atlas2()
fm_assert(&a.calc_direction(W) == a.direction(N));
fm_assert(&a.calc_direction(N) == a.direction(N));
fm_assert(a.frames(N, Wall::Group_::wall).size() >= 3);
+ fm_assert(a.group(N, Wall::Group_::top)->is_defined);
Debug{} << "test_wall2: end";
}